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.

Recent content by WStevens_sa

  1. W

    [SOLVED] PIC16F877 using DS1307 some debugging issues in Mikro C

    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...
  2. W

    [SOLVED] PIC16F877 using DS1307 some debugging issues in Mikro C

    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...
  3. W

    [SOLVED] PIC16F877 RTC Creating a setup mode.

    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...
  4. W

    [SOLVED] PIC16F877 RTC Creating a setup mode.

    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...
  5. W

    [SOLVED] PIC16F877 RTC Creating a setup mode.

    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...
  6. W

    [SOLVED] PIC16F877 RTC using TMR0 or DS1307. Advantage vs Disadvantage

    Wow thanks guy's for all the replies. Everybody gave helpful information.
  7. W

    [SOLVED] PIC16F877 RTC using TMR0 or DS1307. Advantage vs Disadvantage

    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.
  8. W

    [SOLVED] MikroC Compiler #include question

    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...
  9. W

    [SOLVED] MikroC Compiler #include question

    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...
  10. W

    [SOLVED] PIC16F877 RTC C Compiler opinion required

    Thanks Jack I will keep that in mind as it makes sense to reduce the amount of limited resources.
  11. W

    [SOLVED] PIC16F877 RTC C Compiler opinion required

    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...
  12. W

    [SOLVED] PIC16F877 RTC C Compiler opinion required

    I would like to know what everybody else thinks
  13. W

    [SOLVED] PIC16F877 Input button not working properly

    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.
  14. W

    [SOLVED] PIC16F877 Input button not working properly

    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...
  15. W

    [SOLVED] PIC16F877 RTC C Compiler opinion required

    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...

Part and Inventory Search

Back
Top