Search found 38 matches

by flash319
07 Jan 2015 15:38
Forum: mikroC PRO for PIC General
Topic: Problem with LCD display of Analog value.
Replies: 2
Views: 1241

Problem with LCD display of Analog value.

I am using a 16f690 and have the display working fine. The problem is that I am trying to display a ADC_read value and it displays garbage when I turn the pot? The garbage changes when I turn it. Am I using the wrong type or something? Pot is connected to AN2. // Lcd module connections sbit LCD_RS a...
by flash319
06 Jan 2015 18:37
Forum: mikroC PRO for PIC General
Topic: Stupid question: Main() does not loop?
Replies: 4
Views: 1860

Re: Stupid question: Main() does not loop?

Damn Arduino screwing with me :) Thanks.
by flash319
06 Jan 2015 18:20
Forum: mikroC PRO for PIC General
Topic: Stupid question: Main() does not loop?
Replies: 4
Views: 1860

Stupid question: Main() does not loop?

I jump around between AVR, microchip and other Pics. I am using a 16F690 microchip for a simple program. My problem is I only get one execution of the main then it stops? Is this right? Do I have to do the looping myself? // Lcd module connections sbit LCD_RS at RC0_bit; sbit LCD_EN at RC1_bit; sbit...
by flash319
12 Apr 2010 21:53
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

Well I am new here and would like to thank everyone for your help. I do not know what the deal is with bug reports and stuff but thanks. I put the new file in and vola works perfect. I just about gave up so thanks Barry for finding the problem. I only wasted about 8 hours on it but sounds like other...
by flash319
08 Apr 2010 16:10
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

Try Typing 1234 ok I tried that and no go. I stuck a uart_write "type" in the While loop and it just continuously prints that. Should it be looping through that code? I thought it was to wait for 10 characters then continue through the while statement? The data ready seems to always be on. It just ...
by flash319
07 Apr 2010 23:10
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

Okay I am getting the ready when I type something because it is jumping into the loop but will never send anything back??????
by flash319
07 Apr 2010 21:58
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

okay, getting somewhere. I changed the clock to 8Mhz and your code works. I get the please wait 5 times then ready. I can't get the "ok" part to work yet, I will keep playing :D . Thanks a lot.
by flash319
07 Apr 2010 03:21
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

When I put my meter on the RX I can see the voltage drop if I send a bunch of stuff from the pc so I assume that the signal is getting through the Max232. The voltage drops from 4.7 to 4.2. There must be a clock setting wrong or something within the pic because it seams like my circuit is working......
by flash319
07 Apr 2010 02:34
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

Well still no go. I tried your code but can't get a talk back. If I power up the pic with the Terminal turned on I get some garbage back but that is it. The garbage is the same almost every time??

It is stuck on waiting for "ok" part.
by flash319
07 Apr 2010 01:51
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

Both TX and RX are sitting at 5V? Is that right? I have tried turning off the pull-ups but still the same..... I have tested my cable and it is talking back..... any suggestions?
by flash319
07 Apr 2010 01:25
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

Okay. I have changed the Max chip to a max232 and have it set up using 1uf ceramic caps (everywhere i read said the caps should work). I am using the schematic that is in the Pic basic book online here. I have triple checked my wiring. The only thing I am concerned about is the grounding. I am runni...
by flash319
01 Apr 2010 23:03
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

Change your baud rate to 9600 and see what happens. I tried that but still nothing. I am going to get some 1uf caps and see what happends. Is there any way to test with a multi meter anything. I have 5V sitting on the TX and RX pins on the pic, 9V and 6V sitting on the TX and RX to the Max chip fro...
by flash319
31 Mar 2010 20:38
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

The "ok" was the problem. It compiled now. Now I am getting nothing though. I think I may have something not set right in Hyper Terminal or something. I am set at 2400, 8, none, 1 stop and Hardware flow control??? Does this sound right? I am going through a USB to serial converter but that should no...
by flash319
31 Mar 2010 20:11
Forum: mikroBasic PRO for PIC General
Topic: UART test won't compile
Replies: 27
Views: 8544

Re: UART test won't compile

p.erasmus wrote:You are a Person with 23 post in this forum and still you do not use the
code tags when posting code,
Please repect the people that have to read your code and try to help you
Sorry, whats a code tag? Do you mean comments?

Thanks I will give it all a try. The Pic is a 16F690.

Go to advanced search