Posted: Tue Sep 03, 2019 5:20 pm Post subject: Job Specific MCU Clock Counter
Hi, i wanna share my very first SUB Function.
This Function basicly counts the MCU cycles of a Specific Job between two Statements.
Examples:
Code:
MCUcycle 16000000' The LCD should shown a 3. For 3 clock cycles of the MCU between these two Statements
ByteA =1+2
MCUcycle 16000000
or
Code:
MCUcycle 16000000' The LCD should shown a 10. For 10 clock cycles of the MCU between these two Statements
ByteA =1+2
ByteA = ByteA +7
MCUcycle 16000000
or
Code:
MCUcycle 16000000' The LCD should shown a 13. For 13 clock cycles of the MCU between these two Statements
ByteA =1+2
ByteA = ByteA +7
ByteB =1+2
MCUcycle 16000000
I dont know if it usefull to somebody..... ^^ maybe to debug some timings under real Dataloads or kinda like that
Have Fun!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum