Electronic Components Datasheet Search
  English  ▼

X  

PFS154 Datasheet(PDF) 36 Page - PADAUK Technology.

Part # PFS154
Description  8bit MTP Type IO controller
PDF  91 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  PADAUK [PADAUK Technology.]
Direct Link  http://www.padauk.com.tw/
Logo PADAUK - PADAUK Technology.

PFS154 Datasheet(HTML) 36 Page - PADAUK Technology.

Back Button PFS154 Datasheet HTML 32Page - PADAUK Technology. PFS154 Datasheet HTML 33Page - PADAUK Technology. PFS154 Datasheet HTML 34Page - PADAUK Technology. PFS154 Datasheet HTML 35Page - PADAUK Technology. PFS154 Datasheet HTML 36Page - PADAUK Technology. PFS154 Datasheet HTML 37Page - PADAUK Technology. PFS154 Datasheet HTML 38Page - PADAUK Technology. PFS154 Datasheet HTML 39Page - PADAUK Technology. PFS154 Datasheet HTML 40Page - PADAUK Technology. Next Button
Zoom Inzoom in Zoom Outzoom out
 36 / 91 page
background image
PFS154
8bit MTP Type IO Controller
©Copyright 2020, PADAUK Technology Co. Ltd
Page 36 of 91
PDK-DS-PFS154_CN_V105 –Jun. 9, 2020
The stack memory for interrupt is shared with data memory and its address is specified by stack register sp.
Since the program counter is 16 bits width, the bit 0 of stack register sp should be kept 0. Moreover, user can
use pushaf / popaf instructions to store or restore the values of ACC and flag register to / from stack memory.
Since the stack memory is shared with data memory, the stack position and level are arranged by the compiler
in Mini-C project. When defining the stack level in ASM project, users should arrange their locations carefully to
prevent address conflicts.
Once the interrupt occurs, its operation will be:
 The program counter will be stored automatically to the stack memory specified by register sp.
 New sp will be updated to sp+2.
 Global interrupt will be disabled automatically.
 The next instruction will be fetched from address 0x010.
During the interrupt service routine, the interrupt source can be determined by reading the intrq register.
Note: Even if INTEN=0, INTRQ will be still triggered by the interrupt source.
After finishing the interrupt service routine and issuing the reti instruction to return back, its operation will be:
 The program counter will be restored automatically from the stack memory specified by register sp.
 New sp will be updated to sp-2.
 Global interrupt will be enabled automatically.
 The next instruction will be the original one before interrupt.
User must reserve enough stack memory for interrupt, two bytes stack memory for one level interrupt and four
bytes for two levels interrupt. And so on, two bytes stack memory is for pushaf. For interrupt operation, the
following sample program shows how to handle the interrupt, noticing that it needs four bytes stack memory to
handle one level interrupt and pushaf.
void
FPPA0
(void)
{
...
$
INTEN
PA0;
// INTEN =1; interrupt request when PA0 level changed
INTRQ
=
0;
// clear INTRQ
ENGINT
// global interrupt enable
...
DISGINT
// global interrupt disable
...
}



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com