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.
Hi microlab
I agree with you as to the debugging in mikroC as I understand what you mean, however when I have compiled and loaded the hex file into my Real Pic Simulator it should work as Real Pic Simulator does simulate i2c and DS1307. I think the problem lies within the configuration of the...
Hi all
I am playing around with the following code. It uses a DS1307 RTC with a PIC16F877. I am using MikroC and simulating using "Real Pic Simulator". The Problem Im having is that in MikroC when debugging it only goes to a certain point and then does not go any further. See highlighted line...
Hi Arthur
My apologies if I have confused you. I actually wrote the code above before I posted this thread as I have been trying out different code to do different things to learn all the basics before I get stuck in with writing proper structured code. I will be re-programming the code in the...
Hi Arthur
Here is what I have done so far. I think im on the correct path. My coding can be a bit better in the sense of not repeating functions to do tasks. I only have a few things I am struggling with. For example the " if (Button(&PORTC, 2, 1, 1))" where I am not sure how to get one button...
Hi all
Please can you point me in the correct direction. I have a PIC16f877 programmable RTC timer with 2 x 16 LCD displayed with eg "MON 14:56". I have figured out everything I need so far and have written the code for it and tested with simulator. It all works well.
I want to create a...
Hi Guys
I am trying to figure out which is best way to approach this. What are the dis-advantages and advantages of either options?
Option 1: 877 using tmr0 to create RTC
Option 2 877 using DS1307 RTC.
I would like to see what everybody's opinion is.
Hi betwixt.
Thank you for helping me figure it out. The code below might help someone else with the same problem.
How to use multiple .c files in your mikro c project. Lets say you have 2 files for argument sake test1.c and test2.c in your project. Test1.c contains your void main();. Test2.c...
Hi guys. I know this is a stupid question.
I know this can be done in other languages. But I am not sure how to do it in C.
I would like to know if I can do the following. I would like to take all my functions from my test.c file and then put them into a function.c file. But they must still be...
Okay I like the idea never thought of it. Brilliant. The seconds will not be displayed. I am only showing it for now for testing so I can get the timing right as it looses a few seconds over a few hours.
Only problem with making current time volitile is will this not stop me from setting the...
Okay. I understand now. The port set for inputs works accordingly.
TRISC = 5 which is binary 101
RC0 = 1
RC1 = 0
RC2 = 1
RC3 = 0
RC4 = 0
RC5 = 0
RC6 = 0
RC7 = 0
So only RC0 and RC2 will allow inputs.
Hi all
My project is as follows. PICF877 programmed to be a RTC using TMR0 with prescaler for 1 second delay which displays day and time on a 2 x 16 LCD as "MON 00:00:00. RC0 sets hours which works and RC1 is supposed to set the minutes but does not work.
Where have I gone wrong. RC1 is not...
Hi all
I have 877 programmed as RTC using TMR0. With individual timers for each day of the week. Each day has a start/stop timer (Day,Hour,Min) variable to compare to current (day, hour, min). I am using arrays for the variables. For example
timer_status is either 0= disabled, 1= enabled. Each...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.