Altera_Forum
Honored Contributor
21 years agouart
hi all,
has anybody seen a problem where bit 7 received for incoming characters appears wrong? using a niosii 50MHz and adding a uart with 9600 8,n,1 hooking it up to Hyperterminal on windows pc with the following running on the nios... FILE *fp; fp = fopen(UART1_NAME, "r+"); if(fp == NULL) { printf("error opening dev/uart1\n"); } else { while(1) { printf("%c", getc(fp)); } } looking at the console in the IDE I see the following... (any character I type sometimes appears with bit 7 set to 1 and thus the garbage character)? aaáaáaáa eeåeåeåeå iiéiéiéiéiéiéiéiéiéiéiéiéié ooïoïoïoïoïoïoïoïoïoïo uuõuõuõuõuõu qqñqñqñqñqww÷w÷w÷w÷w÷w÷eeåeåeå there is even some pattern to it..... if I press a "new" character i get it 1st two taps on the keyboard - after that the bit 7 received by the NIOS toggles for each one? Thanks for any advice!!! Regards, Joe