![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
if an timer overflow generates interrupt , the controller goes to location ORG 0x04 so,when an external interrupt is generated where will the controller jump to ,i mean which address org......? and if it is same 0x04 ,then how will microcontroler differentiate between the two interrupts? m using pic16f628a and pic16f877a thanks | |
| |
| | #2 |
|
the pic will go to ORG 0x04 in any interrupt. Then you just check different interrupt flags to find out which interrupt occurred.
__________________ Here...let me improve it for you! *Puff of smoke* ....oops... | |
| |
| | #3 |
|
thanks for replying could u please tell me one more thing ...how to complement a bit in pic.cause comf instruction is used to comple ment the whole register......which instruction is used to complement only a bit ...
| |
| |
| | #4 |
|
check this link: http://fribotte.free.fr/bdtech/picnu...heAide_en.html
__________________ Here...let me improve it for you! *Puff of smoke* ....oops... | |
| |
| | #5 | |
| Quote:
To complement bit 5 you would do, Code: movlw b'00100000'
xorwf Location,F
| ||
| |
|
| Tags |
| address, external, interrupt |
| Thread Tools | |
| Display Modes | |
| |