Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
how to intiialize a serial interrupt in pic16f1937 and how to set the timer interrupt for 4 ms delay using option register.could someone help me please
i got to know how to set the timer interrupt.i got the information from this forumhttp://www.ccsinfo.com/forum/viewtopic.php?t=22467.hope it can be helpful for someone like me.
Thanks
i got to know how to set the timer interrupt.i got the information from this forumhttp://www.ccsinfo.com/forum/viewtopic.php?t=22467.hope it can be helpful for someone like me.
Thanks
I'm not criticising but you'll get more answers here....
Serial interrupts are quite easy to set up.... Are you using asm or C? the interrupt flag is in the Peripheral Interrupt Register PIR, and the Enable bit is in the Peripheral Interrupt Enable PIE.... The PEIE bit is in the INTCON reg at bit 6... (to enable all peripheral interrupts, there are two PIR registers PIR1 and PIR2, as is there two PIE registers )
Baud is a tad complicated if you haven't done it before.... The whole serial module has also to be turned on with the SPEN bit...
For the timer setting, you'll need to tell me what crystal / speed you'll be running at....
Thanks.actually i got the serial interrupt working proper.
Timer iam usinh 16MHZ Frequency.
iam sending delay (which is selected by the user ) in C# throught serial port to PIC.I need the interrupts to trigger when they get that delay and send the temperature with that delay back to c#.
I have a doubt in my program iam using serial interrupt ,when it gets triggered user select delay from c# is sent through serial port to PIC.Once the delay is send i have a calibration select in my c# and in that user can give calibration values.Those calibrations values also need to send through serial port to Pic.Can i use the same serial interrupt for this calibration values.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.