Forum Discussion
Altera_Forum
Honored Contributor
17 years agoRS232 interface, DE2-70 board
Can someone please help me? I have two weeks left in my senior design project and have to interface a Doran 2200 Scale to an Altera DE2-70 board using RS232. I have the configuration set-up on the bo...
Altera_Forum
Honored Contributor
17 years agoYour printf code
> printf( "0%0x\n",weight); prints “weight” which is the address of a char array. It should be always the same value. If you want to print the received characters, try to replace the printf with printf( "0%0x\n",in_char); or printf( "0%0x\n",weight[pointer-1]);