Good morning
Is there a way to memcpy from SFR's in the C51?
I have tried to memcpy((char*)&buffer, (char*)&CAN0IF2DA1L, 8); but it doesn't work
Other things i tried
memcpy((char*)&buffer, CAN0IF2DA1L, 8); //error C214: illegal pointer conversion
memcpy((char*)&buffer, (char*)&CAN0IF2DA1L, 8); //error C189: '&' on bit/sfr illegal
Any ideas?
Richard
just made aware the links I previously used are dead, here are some others
community.nxp.com/.../DOC-334648 - 80C51 Family Architecture.pdf
community.nxp.com/.../DOC-334649 - 80C51 Family Hardware Description.pdf
community.nxp.com/.../DOC-334650 - 80C51 Family Programmer's Guide and Instruction Set.pdf
²erik malund - err ... I just posted those above!
You don't quite seem to have got the hang of this new forum, yet!
;-)
Note that you can edit your posts via the 'Actions' button:
and can now post pictures!