Search found 22 matches

by pic_on_me
12 Nov 2012 20:39
Forum: mikroC General
Topic: serial lcd from sparkfun with pic 18f
Replies: 2
Views: 2286

Re: serial lcd from sparkfun with pic 18f

Thanks for the reply. I got it going today, and as I suspected, it's just USART out the string you want. I haven't figured out the scrolling but it's not a big deal.
by pic_on_me
10 Nov 2012 06:02
Forum: mikroC General
Topic: serial lcd from sparkfun with pic 18f
Replies: 2
Views: 2286

serial lcd from sparkfun with pic 18f

Is there a simple way to communicate with the serial lcd from sparkfun. I kind of think it is done using uart, but I haven't found any solid exampels.
by pic_on_me
28 Jul 2010 04:24
Forum: mikroC General
Topic: spi communication with scp 1000 d01 pressure/temperature
Replies: 10
Views: 4170

Re: spi communication with scp 1000 d01 pressure/temperature

I got the program to work. It turns out my problem was the first two spi_write commands were backwards. I miss read the data sheet and ended up writing the address to the data. Sobrietytest, I really appreciate your help on this. Here is the working code for others to use. unsigned char out[20]; int...
by pic_on_me
25 Jul 2010 01:56
Forum: mikroC General
Topic: spi communication with scp 1000 d01 pressure/temperature
Replies: 10
Views: 4170

Re: spi communication with scp 1000 d01 pressure/temperature

Hi Sobrietytest, I really appreciate your help. Here is what my circuit tests have shown, and here are the links to the product page and data sheet. I believe the data sheet says the CS has to change from 1 to 0 for SPI communication, so your original recommendation was correct. http://www.sparkfun....
by pic_on_me
22 Jul 2010 18:49
Forum: mikroC General
Topic: spi communication with scp 1000 d01 pressure/temperature
Replies: 10
Views: 4170

Re: spi communication with scp 1000 d01 pressure/temperature

I have added the CS changes. I didn't think I had too, as I am used to using the MMC library. The loop still does not get entered. If the CS changes are correct, I am going to start changing clock frequencies. Can I wire the CS directly to the ground as it is the only chip being used by the SPI? voi...
by pic_on_me
22 Jul 2010 03:42
Forum: mikroC General
Topic: spi communication with scp 1000 d01 pressure/temperature
Replies: 10
Views: 4170

Re: spi communication with scp 1000 d01 pressure/temperature

Thanks for the help so far. I am still having trouble, so maybe if anyone sees a problem with my code, they could mention it. The wiring is as follows ______PIC______//___SD______ RB0 = SDI(MISO) --> SDO(MOSI) RB1 = SLK -----------> SLK RC7 = SDI(MOSI) --> SDO(MISO) RD1 = CS ------------> CS RA5 ---...
by pic_on_me
19 Jul 2010 01:38
Forum: mikroC General
Topic: spi communication with scp 1000 d01 pressure/temperature
Replies: 10
Views: 4170

Re: spi communication with scp 1000 d01 pressure/temperature

Thanks for the advice. To select mode on the sensor I have to write 0x09 to the memory location 0x03. The data sheet gives the following instructions in the spi section Each SPI communication frame contains two or three 8 bit words: the first word defines the register address (6 bits wide, bits [A5:...
by pic_on_me
18 Jul 2010 19:38
Forum: mikroC General
Topic: spi communication with scp 1000 d01 pressure/temperature
Replies: 10
Views: 4170

spi communication with scp 1000 d01 pressure/temperature

I am trying to get a pic18f4550 to read the temperature and pressure from an scp 1000 d01 temperature/pressure sensor. All of the examples I have found so far use a functions like: write_register(place, thing)//Configure SCP1000 with low noise configuration temp_data = read_register16(0x21); //Read ...
by pic_on_me
22 Apr 2010 03:19
Forum: mikroC PRO for PIC General
Topic: Reading GPS over UART on PIC18f4500
Replies: 14
Views: 11147

Re: Reading GPS over UART on PIC18f4500

I am going to use the Soft_Uart because the UART port on my PIC is taken by the MMC. I am also stuck at 4800 baud because my GPS does not want to accept input signals. I have noticed it is difficult to evaluate the whole sentance. Maybe this is because of some of the problems you mentioned. I really...
by pic_on_me
20 Apr 2010 20:17
Forum: mikroC PRO for PIC General
Topic: Reading GPS over UART on PIC18f4500
Replies: 14
Views: 11147

Re: Reading GPS over UART on PIC18f4500

I am trying to do this using Software UART now. Here is my code for gathering the NMEA strings between the "$" and "*", but I do not think it works. do{ do{ out[1]= Soft_Uart_Read(&error); } while (error); }while(out[1]!='$'); for(i=2;out[i]!='*';i++){ do{ out[i] = Soft_Uart_Read(&error); } while (e...
by pic_on_me
19 Apr 2010 05:40
Forum: mikroC PRO for PIC General
Topic: Reading GPS over UART on PIC18f4500
Replies: 14
Views: 11147

Re: Reading GPS over UART on PIC18f4500

I got my program to work. I have a question though, because I am not sure I understand why it works. Every time the UART_Read or UART_Read_Text is called, does the current character being read move forward. In other words, if you keep calling the function does it keep reading the next character?
by pic_on_me
12 Apr 2010 22:18
Forum: mikroC PRO for PIC General
Topic: Reading GPS over UART on PIC18f4500
Replies: 14
Views: 11147

Re: Reading GPS over UART on PIC18f4500

I used an oscilloscope to see what voltage the GPS is outputting. It is 5-5.2 volts for 1 and 0 volts for 0. I wrote down the first 32 bits, and they do not represent any ASCII character I recognize.
by pic_on_me
11 Apr 2010 23:20
Forum: mikroC PRO for PIC General
Topic: Reading GPS over UART on PIC18f4500
Replies: 14
Views: 11147

Re: Reading GPS over UART on PIC18f4500

I tried using 0x2C and the LCD would display one letter. When I chose "." as the delimiter it would display a bunch of characters, most of which were "X". The GPS receiver is running off of 3.3V and the PIC is running at 5.0V. I wonder if that is the problem. I am going to look to see what the volta...
by pic_on_me
08 Apr 2010 07:36
Forum: mikroC PRO for PIC General
Topic: Reading GPS over UART on PIC18f4500
Replies: 14
Views: 11147

Re: Reading GPS over UART on PIC18f4500

I have re written my program in Mikroc Pro which seems easier to use. The problem is that the program waits forever trying to find the delimiting character. I believe the timing is correct, as I used a default 8 MHz setting that I tested with a 10 second delay. I also know the LCD works. // LCD modu...
by pic_on_me
07 Apr 2010 00:16
Forum: mikroC PRO for PIC General
Topic: Reading GPS over UART on PIC18f4500
Replies: 14
Views: 11147

Re: Reading GPS over UART on PIC18f4500

I was hoping to print out just one of the characters from the string to the LCD, that way I knew I was heading in the right direction. Formatting will come next. Is it possible USART is reading the end of one character and the beginning of the next to create the wrong character? I am trying to find ...

Go to advanced search