Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PFS172 Datasheet(PDF) 52 Page - PADAUK Technology.

Part # PFS172
Description  8bit MTP Type MCU with 8-bit ADC
PDF  92 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  PADAUK [PADAUK Technology.]
Direct Link  http://www.padauk.com.tw/
Logo PADAUK - PADAUK Technology.

PFS172 Datasheet(HTML) 52 Page - PADAUK Technology.

Back Button PFS172 Datasheet HTML 48Page - PADAUK Technology. PFS172 Datasheet HTML 49Page - PADAUK Technology. PFS172 Datasheet HTML 50Page - PADAUK Technology. PFS172 Datasheet HTML 51Page - PADAUK Technology. PFS172 Datasheet HTML 52Page - PADAUK Technology. PFS172 Datasheet HTML 53Page - PADAUK Technology. PFS172 Datasheet HTML 54Page - PADAUK Technology. PFS172 Datasheet HTML 55Page - PADAUK Technology. PFS172 Datasheet HTML 56Page - PADAUK Technology. Next Button
Zoom Inzoom in Zoom Outzoom out
 52 / 92 page
background image
PFS172
8bit MTP MCU with 8-bit ADC
©Copyright 2020, PADAUK Technology Co. Ltd
Page 52 of 92
PDK-DS-PFS172-EN_V000-May 8, 2020
User must reserve enough stack memory for interrupt, two bytes stack memory for one level interrupt and four
bytes for two levels interrupt. For interrupt operation, the following sample program shows how to handle the
interrupt, noticing that it needs four bytes stack memory to handle 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
...
}
void
Interrupt
(void)
// interrupt service routine
{
PUSHAF
// store ALU and FLAG register
// If INTEN.PA0 will be opened and closed dynamically,
// user can judge whether INTEN.PA0 =1 or not.
// Example:
If (INTEN.PA0 && INTRQ.PA0)
{…}
// If INTEN.PA0 is always enable,
// user can omit the INTEN.PA0 judgement to speed up interrupt service routine.
If (INTRQ.PA0)
{
// Here for PA0 interrupt service routine
INTRQ.PA0 = 0;
// Delete corresponding bit (take PA0 for example)
...
}
...
// X : INTRQ = 0;
// It is not recommended to use INTRQ = 0 to clear all at the end of
the
// interrupt service routine.
// It may accidentally clear out the interrupts that have just occurred
// and are not yet processed.
POPAF
// restore ALU and FLAG register
}



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 92


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