Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

sending data with none default USART Pins ???

Status
Not open for further replies.

allomani

Newbie level 4
Joined
Mar 30, 2010
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
cairo
Activity points
1,321
Hello,

i'm using atmega8535 , and using default usart port to send the data from and to wireless module , is there anyway to use another port to send the data from and to PC ? i think i can do it in bascom using serout command , but it C i cant found any related thing , anybody can help please?
 

guys i mean how to do somthing like this in C


-------------------
Config Portc = Output
Open "comc.1:9600,8,n,1" For Output As #1

Do
Print #1 , "A"
'Wait 3

Waitms 200
Loop
Close #1
------------------------
 

u must chek related library that it is in default position.
please read it's library.
 

thnx navidrasi i think this is what i want , but is there any example using functions ?


like

cuart_int(TXPIN,RXPIN,BAUD,STOP,PARITY);
cuart_receive_byte();
cuart_send_byte();

Added after 27 minutes:

hello

ok i found an example that works perfect with attiny85 but it's not working with me on atmega8583

example attached , hope if anybody can modify it to work with atmega8535
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top