This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

settng up rs232 variable

Hi, can anyone tell me how i would set up a variable that expects a certain amount of data to be received through rs232.

i.e. to receive 18 bytes of data only once the the rx pin has been set to input.

thanks guys

Parents
  • once you are doing 'special stuff' I suggest you do not use the 'standard' stuff such as getchar.

    a routine to receive UART data is about 10 lines in the ISR and about 5 lines in the main.

    Why do you not want to receive whatever comes in on the Rx?

    forget about bits, the UART handles bytes

    Erik

Reply
  • once you are doing 'special stuff' I suggest you do not use the 'standard' stuff such as getchar.

    a routine to receive UART data is about 10 lines in the ISR and about 5 lines in the main.

    Why do you not want to receive whatever comes in on the Rx?

    forget about bits, the UART handles bytes

    Erik

Children