hero0765
Member level 2
bitbanging
I want to use "bit banging" to realize the UART port function. I uses Software for communication instead of a dedicated hardware.
I know the ALGORITHM for Sending Byte
1. Start.
2. Make Tx pin Low (Stop Bit).
3. Wait for duration corresponding to baud rate.
4. Send data bit.
5. Wait for duration corresponding to baud rate.
6. Go to 4 till all eight data bits haven’t been sent.
7. Send Stop Bit
8. Wait for duration corresponding to baud rate.
9. Make Tx pin High
10. Stop
I want to send Bytes by this method to communicate with the PC .
I set the baud rate of the PC at 9600 bps.So I alternate the transmit pin after specific interval . The interval is 1/9600. Can I be successful to do ?
I want to use "bit banging" to realize the UART port function. I uses Software for communication instead of a dedicated hardware.
I know the ALGORITHM for Sending Byte
1. Start.
2. Make Tx pin Low (Stop Bit).
3. Wait for duration corresponding to baud rate.
4. Send data bit.
5. Wait for duration corresponding to baud rate.
6. Go to 4 till all eight data bits haven’t been sent.
7. Send Stop Bit
8. Wait for duration corresponding to baud rate.
9. Make Tx pin High
10. Stop
I want to send Bytes by this method to communicate with the PC .
I set the baud rate of the PC at 9600 bps.So I alternate the transmit pin after specific interval . The interval is 1/9600. Can I be successful to do ?