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.

[PIC] code on how to send a text to hyperteminal through usart upon pressing a botton

Status
Not open for further replies.

Ralph Marime

Newbie level 3
Joined
May 30, 2015
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Zimbabwe
Activity points
28
I want a code on mikroC such that I can send a text to vb via usart upon pressing a button on a pic 16f1946 on proteus
 

if you do a forum search for PIC16 USART you will find many posts
in VB you can use the SerialPort component from the toolbox to receive/transmit data from a serial interface
 

Try this mikroC PRO PIC project. It is working in Proteus. You have to use COMPIM model in Proteus to interface with VB.

pic16f1946 uart.png
 

Attachments

  • PIC16F1946 UART.rar
    99.5 KB · Views: 91

thanks for the picture milan but um in great need of the simple code upon turning on a logic state high.would greatly appreciate it because my project is due next week.
 

Hello!

We write a FAQ for newcomers, and especially for students.

So what happens here?
- You are asking for code.
Usually you don't ask for code. You first write some code and if it doesn't work you post it
and ask for advice. Asking for code, everybody will think you're just a lazy chap who wants
his homework made by others.
- This time, you were lucky, somebody gives you a fully working code.
When you get a working code, a good thing is to first try to make it work, then figure out
how to adapt it to your homework, and then, back to first point, ask for advice if what you wrote
doesn't work
At this point, I should add: use a versioning system. For example tortoise git or tortoise svn or
something else. Then if you start from a working program, modify a few lines, in case it doesn't
work anymore, you can easily come back to the last working version.
- Last comment:
Apparently the code you got is EXACTLY what you want. The only difference is that the button
works in the opposite polarity. So here is my advice: if you really cannot solve this problem,
you may consider to change your field of study for something else. Why not cooking? Cooking
would be perfect because you do exactly as written on the recipe.

Dora.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top