View previous topic :: View next topic |
Author |
Message |
rennelmallari
Joined: 02 Feb 2013 Posts: 8
|
about EX_SISR.C |
Posted: Sat Mar 02, 2013 10:59 pm |
|
|
Can someone explain to me, how the example ex_sisr.c works step by step? I can't understand all of it. I tried but no success. So confused. Pls need your help. I think this might a big help for my code "receiving text command" to my thesis project. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9243 Location: Greensville,Ontario
|
|
Posted: Sun Mar 03, 2013 7:09 am |
|
|
In order to know what's going on 'step by step' I suggest the following.
You should create a very small program that uses it, compile, run to confirm it works. Then, dump the listing (programname.lst). Use the PIC datasheet, instruction set section to 'decode' what the PIC is doing.
If you use a 16F877 there's only 35 instructions making it easy to figure out what is going on.
C code, like all 'high level languages', gets converted into assembler (machine code) that the PIC executes so the ONLY way you'll really know 'step by step' what's going on is to learn machine code (aka the PIC instruction set).
hth
jay |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1934 Location: Norman, OK
|
|
Posted: Sun Mar 03, 2013 7:23 am |
|
|
Search the forum for the words "explain EX_SISR.C" (without the quotes) and
select Search for All Terms. You will find your explanation. _________________ Google and Forum Search are some of your best tools!!!! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Mar 03, 2013 7:50 pm |
|
|
To help you find the useful threads,
There is an explanation by Ttelmah at in this thread, of how the
"end of buffer" condition is calculated inside the #int_rda routine:
http://www.ccsinfo.com/forum/viewtopic.php?t=47069 |
|
|
|