Skip to main content
wolfgang239955_stm1_st
Associate III
May 4, 2010
Question

bytes fetching order with a 16bit data instruction

  • May 4, 2010
  • 3 replies
  • 1393 views
Posted on May 04, 2010 at 16:29

bytes fetching order with a 16bit data instruction

#adc-problem #urdu #microcontroller-projects
This topic has been closed for replies.

3 replies

fggnrc2
Associate III
May 17, 2011
Posted on May 17, 2011 at 15:08

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.

EtaPhi

microcontrollerpakistan
Visitor II
May 17, 2011
Posted on May 17, 2011 at 15:08

Thanks I was having same problem......

http://urdututorials.net/

http://microcontrollerpakistan.info/

.Emma

http://financepakistan.tk/

wolfgang239955_stm1_st
Associate III
May 17, 2011
Posted on May 17, 2011 at 15:08

Hi EtaPhi,

that's exactly what I was looking for.

BTW: nice to meet you here in this forum!

Thanks a lot,

WoRo