Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Interrupts Microchip PIC With CCS-C

Interrupts Microchip PIC With CCS-C

|Views: 4,472|Likes:
Published by ascensorim

More info:

Published by: ascensorim on Jul 17, 2012
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





MSEE Ibrahim GULESINAdministrator16/07/2012
Ing.Ibrahim GULESIN
Brief information about interrupts, timer/counter operation, PWM pulse width modulation andCCS Pic-C applications on these topics.
PIC16 F84A interrupts and TIMERO module
PIC16 F877A interrupts and TIMERO, TIMER1, TIMER2 modules
PIC16 F877A Capture/Compare/Pulse-width-modulation CCP module
Interrupts and timing are two most important topics in studying microcontrollers. Correct andefficient use of related hardware PIC MCU sources and software capabilities will ease manyadvanced engineering studies. CCS Pic-C compiler provides various high-level language featuresthat may be utilized in related studies. Bearing in mind that, lecture notes, datasheet, compilerhelp and examples should be consulted for their proper use, the following information will serveas a guide to these studies.
16 F84A has four maskable interrupt sourcesExternal interrupt source:This is the only external interrupt input. It is edge triggered.Associated pin: RBO/INTTimer overflow interrupt:Caused by the Timer O module. It occurs when the timer's 8-bit counter overflowsPort B interrupt on change:This interrupt occurs when any of the higher 4 bits of Port B(RB7:RB4) changes.EEPROM write complete:Occurs when a write instruction to EEPROM memory iscompleted.
Ing.Ibrahim GULESIN
Interrupt logic structure of 16F84A is shown below. The 5 FR that controls it is the INTCON registerand OPTION register. INTCON register contains enable bits of all interrupt sources and OPTIONregister contain interrupt edge select bit of external interrupt sourceEach source has an enable line (labeled by E) and a flag line (labeled by F, actually these are theinterrupt flags, rather than interrupt sources).
Note:All four 16 F84A interrupts can be enabled or disabled (maskable). Interrupt flag bits are setwhen an interrupt condition occurs, regardless of the state of its corresponding enable bit orthe global enable bit.

Activity (33)

You've already reviewed this. Edit your review.
Rapsodia Macabra liked this
1 thousand reads
1 hundred reads
lemp9002 liked this
Yenner Robayo liked this
Mujahid Hussain liked this
Mujahid Hussain liked this
Mujahid Hussain liked this
Mujahid Hussain liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->