bytes fetching order with a 16bit data instruction
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-05-04 7:29 AM
Posted on May 04, 2010 at 16:29
bytes fetching order with a 16bit data instruction
#adc-problem #urdu #microcontroller-projects
Labels:
- Labels:
-
ADC
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:08 AM
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. EtaPhiOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:08 AM
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, WoRoOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:08 AM
Posted on May 17, 2011 at 15:08
Thanks I was having same problem......
.Emma