2010-05-04 07:29 AM
bytes fetching order with a 16bit data instruction
#adc-problem #urdu #microcontroller-projects2011-05-17 06:08 AM
Hello WoRo!
I had your same question when I wanted to read TIM1_CNTR. I found a reply to my question at the bottom of page 136 of STM8S family reference manual (RM0016): ''Do not use the LDW instruction to read the 16-bit counter. It reads the LS byte first and returns an incorrect result'' So, if RM0016 tells the truth, a LDW instruction loads the lower byte first. EtaPhi2011-05-17 06:08 AM
Hi EtaPhi,
that's exactly what I was looking for. BTW: nice to meet you here in this forum! Thanks a lot, WoRo2011-05-17 06:08 AM
Thanks I was having same problem......
.Emma