Search found 67 matches
- 20 Jul 2011 03:00
- Forum: mikroC PRO for PIC General
- Topic: Hard SPI Reading from DS1305
- Replies: 17
- Views: 4698
Re: Hard SPI Reading from DS1305
Well to be honest even me don't know why i am having such troubles using this RTC while i already used it successfully in the past. But there are big differences with what i did in the past and now. In the past i used a custom made SPI library which uses commands like PORTX.F1=1 etc to generates all...
- 20 Jul 2011 01:23
- Forum: mikroC PRO for PIC General
- Topic: Hard SPI Reading from DS1305
- Replies: 17
- Views: 4698
Re: Hard SPI Reading from DS1305
To Sparky Right now i don't have a oscilloscope to see if the SPI signals are OK. About the what my LCD is showing, right now i just want to be sure that my SPI is working properly after that i will focus on interpreting the data that comes out of the RTC. You mention something about MSSP logic can ...
- 18 Jul 2011 23:17
- Forum: mikroC PRO for PIC General
- Topic: Hard SPI Reading from DS1305
- Replies: 17
- Views: 4698
Re: Hard SPI Reading from DS1305
Thanks for the comment Sparky you are right. But unfortunatly i am still getting only 0 on my LCD. But we are at least one step closer to solving the problem. Below here my updated code: // LCD module connections sbit LCD_RS at RB4_bit; sbit LCD_EN at RB5_bit; sbit LCD_D4 at RB0_bit; sbit LCD_D5 at ...
- 18 Jul 2011 20:46
- Forum: mikroC PRO for PIC General
- Topic: Hard SPI Reading from DS1305
- Replies: 17
- Views: 4698
Re: Hard SPI Reading from DS1305
I am using a PIC887. I just double checked my SPI connections they are OK. SDI with SDO, for both RTC and PIC. i also disconnected the pull down/up resistor selector but still i see only 0 on my LCD.
- 18 Jul 2011 18:00
- Forum: mikroC PRO for PIC General
- Topic: Hard SPI Reading from DS1305
- Replies: 17
- Views: 4698
Re: Hard SPI Reading from DS1305
To bpislife There is always a small delay between the CE and the SCLK. According to the datasheet this should be a minimum of 1 us (using 5V as power supply). I have lower my delays between the CE and the SCLK and remove the delay between the SPI writes but i still see 0 on my LCD. Regarding my PIC ...
- 18 Jul 2011 01:00
- Forum: mikroC PRO for PIC General
- Topic: Hard SPI Reading from DS1305
- Replies: 17
- Views: 4698
Re: Hard SPI Reading from DS1305
Thank you for your answer bpislife
Can i assume that my code is correct seeing the fact that you asked me for my connection drawing? I am using EasyPic 6 and an external breadboard to connect my RTC.
Any help will be welcome
Can i assume that my code is correct seeing the fact that you asked me for my connection drawing? I am using EasyPic 6 and an external breadboard to connect my RTC.
Any help will be welcome
- 16 Jul 2011 20:56
- Forum: mikroC PRO for PIC General
- Topic: Hard SPI Reading from DS1305
- Replies: 17
- Views: 4698
Hard SPI Reading from DS1305
Hi fellow programmers I just started with a project that consist of reading from a DS1305 RTC. I know that my code will not give me the correct readings from the register i am trying to read from but i just want to be sure that my phisical connections are OK so i can focus on the software. Below her...
- 15 Jul 2011 04:37
- Forum: mikroC PRO for PIC General
- Topic: Help me Out on these calculations
- Replies: 11
- Views: 4101
Re: Help me Out on these calculations
Hi Matiko The best approach to your problem is to use a IC that is build especially for your purpose which is energy monitoring. It gives you active, reactive,apparent energy, Voltage and current of 3 phases and it is fairy easy to use. You can use like ADE7758, if you are comfortable using SPI then...
- 15 Jul 2011 02:35
- Forum: mikroC General
- Topic: Reading from DS1305
- Replies: 1
- Views: 1126
Re: Reading from DS1305
I just realize that i posted my questions inside the wrong forum. I would like to receive help in using MikroC Pro version.
- 15 Jul 2011 02:31
- Forum: mikroC General
- Topic: Reading from DS1305
- Replies: 1
- Views: 1126
Reading from DS1305
Hi fellow programmers I just started with a project that consist of reading from a DS1305 RTC. I know that my code will not give me the correct readings from the register i am trying to read from but i just want to be sure that my phisical connections are OK so i can focus on the software. Below her...
- 08 Jun 2011 04:25
- Forum: mikroC PRO for PIC General
- Topic: can any help me about battery level ?
- Replies: 3
- Views: 1320
Re: can any help me about battery level ?
You still did not say what you want to achieve. It will be very difficult for anyone to help you if you don't explain what you want to do.
- 07 Jun 2011 04:05
- Forum: mikroC PRO for PIC General
- Topic: can any help me about battery level ?
- Replies: 3
- Views: 1320
Re: can any help me about battery level ?
Hi
Please be more specific with what you want to achieve. Do you want to measure a voltage? What kind of output are you using? What is the resolution of the ADC that you want to use?
Please be more specific with what you want to achieve. Do you want to measure a voltage? What kind of output are you using? What is the resolution of the ADC that you want to use?
- 17 May 2011 19:44
- Forum: mikroC PRO for PIC General
- Topic: combining ADC on LEDS and LCD example
- Replies: 2
- Views: 982
Re: combining ADC on LEDS and LCD example
@ Mince-n-Tatties
16F877
No i did not enable the library now it is working fine. I find it strange that i have to initialize the library both inside he code and inside the compiler.
Do you know by any chance why?
16F877
No i did not enable the library now it is working fine. I find it strange that i have to initialize the library both inside he code and inside the compiler.
Do you know by any chance why?
- 17 May 2011 05:09
- Forum: mikroC PRO for PIC General
- Topic: combining ADC on LEDS and LCD example
- Replies: 2
- Views: 982
combining ADC on LEDS and LCD example
Hi there I have some experience with MikroC 8.2 but i am new with MikroC Pro. Recently i tried to combine the ADC on LED example with the LCD example to be able to read the the ADC counts on the LCD. It sounds pretty easy but yet i am having trouble with the line " ADC_Read(2) " . It gives me the er...
- 08 Jul 2010 07:07
- Forum: mikroC General
- Topic: UDP communication
- Replies: 2
- Views: 1690
Re: UDP communication
Hi i have a library that can send information using the UDP protocol. It works flawlessly but the Usart part you need to do it on your own.