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 Klaus
i misread my bad sorry. Is in user.c. I enclose you the file to take a look. If you have something to add please do i will be grateful to learn one more thing.
Was on main i have also posted the code files.Anyway is solved.
tyassin is right. I had already tried this way but didn't work and the reason was that i was included the .h file in the end of all the other includes. Should be in the very beginning.
Thank you all for your time. Have nice day.
Hi
MPLAB with xc8 for pic 16F1829
1667355918
My definitions are on main.c file. Then i have a RTC_ReadWriteEdit.c and RTC_ReadWriteEdit.h files. When i am using the say the ButtonPlus definition in RTC_ReadWriteEdit.c file the compiler comes up with the fault i describe on my main post.
Thanks...
Hi all
i have a coding question. On my main.c file i have the following definitions:
#define ButtonSetClockDate PORTCbits.RC0 //RED
#define ButtonPlus PORTCbits.RC1 //YELLOW
#define ButtonSetAlarm PORTCbits.RC2 //ORANGE
These are used in main.c but also i use them in another...
yes it is confusing because lecturer gave the assignment part by part thats why. I didn't understand very well your instruction but i will give it a go and i will contact back if something is not clear.
thank you
Hi all
i am having an assignment to count frequency with TMR1 on a PIC 16F88. I am using MPLAB and XC8. I am posting the code which is only an interrupt. TMR0 is producing a square wave 50% duty cycle which is from stimulus seton RA4 pin. My Fosc is 4MHz and no prescale used.
#ifndef...
Hi all
Just last words for that problem to be here as reference to maybe something similar. Problem solved when i include the pic16F18446.h header file on the main.c file.
Thank you all
Table 18-1. Timer0 Clock Source Selections
T0CS Clock Source
111 CLC1_out
110 SOSC
101 MFINTOSC(500 kHz)
100 LFINTOSC
011 HFINTOSC
010 FOSC/4
001 Pin selected by T0CKIPPS (Inverted)
000 Pin selected by T0CKIPPS (Noninverted)
These are the bits for the clock source. Which is the right to have...
Ok let me explain better is my fault. First i dont't have any project specific. I try to learn on that pic the timer0. I want something simple with no prescalers and postcalers plain lets say Fosc/4 internal clock.Lets start from the simple how to set config for internal clock. You see in 16F88...
Hi again
I have a problem with the configuration bits setting and timer0. Icreate an interrupt very simple one just to start learning with timers. I can say that spend a whole day zero result. Code is building and debugging with no issues but is not even getting inside the interrupt. I work on a...
thank you for the answer. Also the info very usefull. I was experimenting only with few thinks on interrupts to get a knowledge of how to code few thinks.I manage now to run the small code.The problem was that i had to define again the external clock in the interrupt.c file to run the...
Hi all
I am new as you already know. Doing lecel 6 in automation & electronics. I am using MPLABX and XC8. The PIC we working on is 16F88 or 16F1829(i know they are ages back but use them only for the MPLAB) personaly i run all our LAB exercises on curiosity board with 16F18446.
Before...
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.