Simple Question on PIC16F628...

Status
Not open for further replies.

si2030

Member
Hi there,

This is my first post in this forum and I hope I am in the right place...

I have been studying assembler and have come across the RESET VECTOR AND INTERUPT VECTOR.

I have looked at the datasheet and sure enough there they are at 0000H and 0004H.

I would like to know how you use them and when you use them..

Hope someone can shed some light on this..

Thanks in advance
Simon
 

hi,

The 0x0000h is the Program Counter address at which the program starts, the PIC will read the 0x0000h location as it powers up after RESET

The 0x0004 is an Interrupt address. IF the program Enables interrupts and an interrupt occurs the Program Counter will be loaded with 0x0004, where the interrupt subroutine start is located and the ISR [ interrupt sub routine] will run.

OK.?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…