Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 23rd April 2004, 06:24 PM   (permalink)
Default invert TTL

The UART i'm using outputs TTL. How do I get to output invert TTL?
is it enough to flip the data bits, or do i also have to invert the start and stop bits as well?
__________________
i\'m actually a novice in the robotics field and would love to get help to lunch my projects..
hani_a is offline  
Old 23rd April 2004, 09:54 PM   (permalink)
Default Re: invert TTL

Quote:
Originally Posted by hani_a
The UART i'm using outputs TTL. How do I get to output invert TTL?
is it enough to flip the data bits, or do i also have to invert the start and stop bits as well?
Generally (and certainly on PIC's) you have to provide a hardware inverter if using a UART - you can't invert it in software. You don't mention what you are using, or what you want to do, there may well be a software solution - but not usually when using a hardware UART.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 23rd April 2004, 10:43 PM   (permalink)
Default Invert TTL

I'm using ATMEGA16. It provides me with code to transmit and receive data via the USART. Do you know why it's so difficult to find an invert-TTL device? I mean, I've been looking for an RS232 to invert TTL conversion device on the internet and I can't find anything.

Thanks!
Hani A.
__________________
i\'m actually a novice in the robotics field and would love to get help to lunch my projects..
hani_a is offline  
Old 24th April 2004, 06:37 AM   (permalink)
Default Re: Invert TTL

Quote:
Originally Posted by hani_a
I'm using ATMEGA16. It provides me with code to transmit and receive data via the USART. Do you know why it's so difficult to find an invert-TTL device? I mean, I've been looking for an RS232 to invert TTL conversion device on the internet and I can't find anything.
I'm not very sure what you are after, but a MAX232 converts between 5V and RS232 levels, AND inverts the signal. Are you wanting to feed to an RS232 port?. The hardware USART in a PIC is designed to be used with a MAX232 (or similar), presumably your processor is the same?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 24th April 2004, 12:12 PM   (permalink)
Default

Yes, It's the same on atmega's. Do a google search for MAX232. It should work, plenty of scematics on the net.
Exo is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 05:42 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker