Forum Discussion
Altera_Forum
Honored Contributor
19 years agoReading from an 8 Bit Component
Hi, I connected the Nios to an 8 bit custom component. When I read from a register which contains a 1 as the most significant bit, i.e. all values from 0x80 to 0xFF, the remaining 24 bits get f...
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by smcnutt@Jan 19 2007, 09:51 AM if you're reading an 8-bit unsigned value, it's a good idea to store it as an 8-bit unsigned
variable ;-)
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=20715)
--- quote end ---
--- Quote End --- Yes, indeed it is a very good idea to use unsigned char... I didn't think of this before. Thanks a lot, Scott