Hi all!
Attached is my template and code...
In the previous posting i was asking about how to read the instruction
cycles...
you will find in the attachement 3 modules: Binary to BCD Module (Bin_2_bcd), BCD to 7 Segment Module (Bcd_2_7seg), BCD to binary Module (bcd_2_binary)
im using MPLAB v7 and simulating the whole thing with PIC16F684 (no implementation on real processor)...
i managed to read the code size for each module, i read 28, 15, 11 words for Bin_2_bcd, Bcd_2_7seg and bcd_2_binary respectively!
please check it out if im right?
my main concern is to read the instruction cycles (best and worst case) for each module ! and my understanding is that for best (worst) case i'll have to test each module with "0" ("99"), am i right??
In the previous posting u guyz gave me some useful informations that really opened my mind...I would like you, for checking purposes, to provide the instruction cycles for each module (best and worst cases) and explain the method used!
Also, please lemme know if u find anything that does not make sense in the code or comment!!!
As for the bcd_2_binary module, can u explain the algorithm used?
Everything that i need clarification with has been highlighted in red!!!
Notice that i have highlighted in red "_congig...." in the header file section coz it was giving me an error while building it so i was putting a semi colon so it can ignore it!
To check each module stuff, i was putting other module codes and...as comments
NOTE: this exercise had for purposes to get familiar with MPLAB IDE and its functionalities, PIC instruction set!
i have downloaded lots of documentations regarding PIC microcontrollers and MPLAB and im learning them...
my goal is to really master it as i like it
regards,
Attached is my template and code...
In the previous posting i was asking about how to read the instruction
cycles...
you will find in the attachement 3 modules: Binary to BCD Module (Bin_2_bcd), BCD to 7 Segment Module (Bcd_2_7seg), BCD to binary Module (bcd_2_binary)
im using MPLAB v7 and simulating the whole thing with PIC16F684 (no implementation on real processor)...
i managed to read the code size for each module, i read 28, 15, 11 words for Bin_2_bcd, Bcd_2_7seg and bcd_2_binary respectively!
please check it out if im right?
my main concern is to read the instruction cycles (best and worst case) for each module ! and my understanding is that for best (worst) case i'll have to test each module with "0" ("99"), am i right??
In the previous posting u guyz gave me some useful informations that really opened my mind...I would like you, for checking purposes, to provide the instruction cycles for each module (best and worst cases) and explain the method used!
Also, please lemme know if u find anything that does not make sense in the code or comment!!!
As for the bcd_2_binary module, can u explain the algorithm used?
Everything that i need clarification with has been highlighted in red!!!
Notice that i have highlighted in red "_congig...." in the header file section coz it was giving me an error while building it so i was putting a semi colon so it can ignore it!
To check each module stuff, i was putting other module codes and...as comments
NOTE: this exercise had for purposes to get familiar with MPLAB IDE and its functionalities, PIC instruction set!
i have downloaded lots of documentations regarding PIC microcontrollers and MPLAB and im learning them...
my goal is to really master it as i like it
regards,
Attachments
-
36 KB Views: 13