May 25, 2009 #1 S susano Junior Member level 1 Joined Mar 30, 2009 Messages 19 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,441 software uart in c Hi, how can i write(define) a software uart in C ? my MCU has only 1 uart. but i need 2 uart. is writing a software uart in C, the same as BASIC? please help me! im really needy!
software uart in c Hi, how can i write(define) a software uart in C ? my MCU has only 1 uart. but i need 2 uart. is writing a software uart in C, the same as BASIC? please help me! im really needy!
May 27, 2009 #2 A AMK1971 Member level 3 Joined Nov 13, 2007 Messages 67 Helped 11 Reputation 22 Reaction score 4 Trophy points 1,288 Location 33.688°N73.035°E Activity points 1,596 writing a software uart You can find an example of software serial port in chapter 4, Project 4.b of the following book **broken link removed**
writing a software uart You can find an example of software serial port in chapter 4, Project 4.b of the following book **broken link removed**
May 27, 2009 #3 S sau_sol Full Member level 5 Joined Feb 27, 2008 Messages 257 Helped 41 Reputation 82 Reaction score 11 Trophy points 1,298 Location India Activity points 2,509 gpio software uart you can use two latch ic and their enable pins connected with the gpio of the controller so you can select one of the two
gpio software uart you can use two latch ic and their enable pins connected with the gpio of the controller so you can select one of the two
May 27, 2009 #4 A AMK1971 Member level 3 Joined Nov 13, 2007 Messages 67 Helped 11 Reputation 22 Reaction score 4 Trophy points 1,288 Location 33.688°N73.035°E Activity points 1,596 Re: software uart in c sau_sol said: you can use two latch ic and their enable pins connected with the gpio of the controller so you can select one of the two Click to expand... This method is good for transmission only, but can not use it for simultaneous reception.
Re: software uart in c sau_sol said: you can use two latch ic and their enable pins connected with the gpio of the controller so you can select one of the two Click to expand... This method is good for transmission only, but can not use it for simultaneous reception.
May 27, 2009 #5 S sau_sol Full Member level 5 Joined Feb 27, 2008 Messages 257 Helped 41 Reputation 82 Reaction score 11 Trophy points 1,298 Location India Activity points 2,509 Re: software uart in c then at the time of transmission use an extra bit to for identifying the packet of UART1 or for UART2 hence you will get two virtual UART using 1 but this will also increase the number of collisions in the packets
Re: software uart in c then at the time of transmission use an extra bit to for identifying the packet of UART1 or for UART2 hence you will get two virtual UART using 1 but this will also increase the number of collisions in the packets