Jump to content

jsimmon2

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jsimmon2

  • Rank
    Newbrie
  1. Hello, I have changed all of the registers to lowercase, and now the error is the following: #pragma CLOCK_FREQ 20000000 . Is there some declaration issue with declaring the clock frequency this way? I am sure that I defined my pragma features efficiently, however that is the case since I still experience errors. Can you please assist me? Thank You
  2. Hello, I am having difficulty in building my project using BoostC with the SourceBoost IDE. I have listed a header file of my project that is causing me errors. Whenever I try to build the project, I always receive a vague error in the output window. I have been writing C for a while and I am certain that my syntax is correct, however I am open for assistance. Can you please provide me with some insight Thank You? // CPU: PIC 18F4620 // CLOCK RATE: 20 MHZ // PURPOSE: INITIALIZATION SEQUENCES FOR THE PIC18F4620 #ifndef _KERNEL_H_ #define _KERNEL_H_ #include <system.h> #include <stdio.h> #define BIT_CLOCK_MAX 65535 #pragma DATA _CONFIG1H, _OSC_HS_1H #pragma DATA _CONFIG2H, _WDT_OFF_2H #pragma DATA _CONFIG2L, _PWRT_OFF_2L #pragma DATA _CONFIG2L, _BOREN_OFF_2L #pragma DATA _CONFIG4L, _LVP_OFF_4L #pragma DATA _CONFIG3H, _MCLRE_ON_3H #pragma CLOCK_FREQ 20000000 //---------------------------------- //------ TMR0 Declaration ---------- INTCON = 0xE0; T0CON = 0X87; TMR0H = 0x03; TMR0L = 0x09; // Initializing PORTA3:0 as Outputs TRISA.3 = 0; PORTA.3 = 0; TRISA.2 = 0; PORTA.2 = 0; TRISA.1 = 0; PORTA.1 = 0; TRISA.0 = 0; PORTA.0 = 0; //---------------------------------- //---------------------------------- //---------------------------------- //------ TMR1 Declaration ---------- PIR1.0 = 0; PIE1.0 = 1; IPR1.0 = 0; T1CON = 0xF1; TMR0H = 0x0B; TMR0L = 0x1D; //---------------------------------- //---------------------------------- //---------------------------------- //------ TMR2 Declaration ---------- PIR1.1 = 0; PIE1.1 = 1; IPR1.1 = 0; T2CON = 0x7F; TMR2 = 0x00; PR2 = 0xFF; //---------------------------------- //---------------------------------- //---------------------------------- //------ TMR3 Declaration ---------- PIR2.1 = 0; PIE2.1 = 1; IPR2.1 = 0; T3CON = 0x81; TMR0H = 0xFF; TMR0L = 0xFE; //---------------------------------- //---------------------------------- #endif Output window details: main.c failure kernel.h(20):error: failure "C:\Program Files\SourceBoost\boostc.pic18.exe" main.c -t PIC18F4620 Exit code was 1. Removing target: main.obj Done
×
×
  • Create New...