W dniu 2013-01-13 09:53:00 użytkownik Molnár Károly <prot...@freemail.hu> 
napisał:
...
> Something left out of the calculation. In the case of TMRx, differ the read 
> and write sequence.
> write: first TMRxH, second TMRxL
> read: first TMRxL, second TMRxH
> 

:-)

As for mcs51:
SDCC manual (http://sdcc.sourceforge.net/doc/sdccman.pdf) ch. 3.4.1.7


"16 Bit and 32 bit special function register combinations which require a 
certain access order are better not declared
using __sfr16 or __sfr32. Allthough SDCC usually accesses them Least 
Significant Byte (LSB) first, this is not
guaranteed."

Albert

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to