Author |
Message |
Topic: PIC16F182x not yet been tested at CCS |
hwstar
Replies: 12
Views: 15663
|
Forum: General CCS C Discussion Posted: Wed Oct 13, 2010 1:40 pm Subject: PIC16F182x not yet been tested at CCS |
I have a board with the 16F1823 on it. The code for the UART is generated correctly as PCM as commented, but the other thing you must do is make sure you set the APFCON register up to route the UART's ... |
Topic: Open Source Bootloader Available |
hwstar
Replies: 2
Views: 6315
|
Forum: General CCS C Discussion Posted: Sun Oct 03, 2010 3:36 pm Subject: Open Source Bootloader Available |
*** The Pic Boot Loader (PBL) Project ***
I wrote a bootloader for midrange pic parts using the CCS compiler,
and also wrote PC application programs which work in concert with it.
All of the sour ... |
Topic: Forcing a boot loader live in a restricted address range |
hwstar
Replies: 6
Views: 8217
|
Forum: General CCS C Discussion Posted: Thu Sep 23, 2010 12:20 pm Subject: Forcing a boot loader live in a restricted address range |
Thanks for the tip. Will try it this evening.
Steve. |
Topic: Forcing a boot loader live in a restricted address range |
hwstar
Replies: 6
Views: 8217
|
Forum: General CCS C Discussion Posted: Tue Sep 21, 2010 7:39 pm Subject: Forcing a boot loader live in a restricted address range |
Ok, I reduced it down to this:
#include <16F1938.h>
#pragma fuses HS, PLL, WDT, PUT, NOLVP
// Clock speed
#pragma use delay(clock=32Mhz, restart_wdt)
#define TOTAL_PROGRAM_MEMORY ... |
Topic: Forcing a boot loader live in a restricted address range |
hwstar
Replies: 6
Views: 8217
|
Forum: General CCS C Discussion Posted: Tue Sep 21, 2010 10:25 am Subject: Forcing a boot loader live in a restricted address range |
bootloader.h contains #defines for TOTAL_PROGRAM_MEMORY LOADER_START, LOADER_SIZE, APP_START, and APP_SIZE
Here's what's in bootloader.h
#define TOTAL_PROGRAM_MEMORY 0x4000
#define LOADER_STA ... |
Topic: Forcing a boot loader live in a restricted address range |
hwstar
Replies: 6
Views: 8217
|
Forum: General CCS C Discussion Posted: Sat Sep 18, 2010 8:47 pm Subject: Forcing a boot loader live in a restricted address range |
I want to have the compiler bomb out when a boot loader I'm currently
developing exceeds 1K in size. The boot loader occupies 0x0000 to 0x3FF
and I'd like the compiler to throw an error if the size ... |
Topic: Linked lists and pointers in structures |
hwstar
Replies: 3
Views: 4893
|
Forum: General CCS C Discussion Posted: Wed Jun 23, 2010 7:39 pm Subject: Linked lists and pointers in structures |
Thanks for taking a look.
I'll continue to use the workaround for now. I will pay for a 1 yr. maintenance if I find something which can't be worked around. |
Topic: Linked lists and pointers in structures |
hwstar
Replies: 3
Views: 4893
|
Forum: General CCS C Discussion Posted: Sun Jun 20, 2010 2:37 pm Subject: Linked lists and pointers in structures |
I'm getting an error in the following code using the CCS compiler 4.108 (linux version):
#include <16F1936.h>
#pragma device ADC=10 WRITE_EEPROM=NOINT
#pragma nolist
#include <stdl ... |
Topic: questions about pic16f1933 and 4X PLL |
hwstar
Replies: 2
Views: 4728
|
Forum: General CCS C Discussion Posted: Sun May 16, 2010 11:37 am Subject: 16F1933 and 4x PLL |
After making a small change to the suggested test program, it appears to be setting the fuses correctly. The linux version is case sensitive on file names and needs a lower case h for the header files ... |
Topic: questions about pic16f1933 and 4X PLL |
hwstar
Replies: 2
Views: 4728
|
Forum: General CCS C Discussion Posted: Sat May 15, 2010 5:29 pm Subject: questions about pic16f1933 and 4X PLL |
The following gets a compile error on PCM (linux version):
#include <16F1933.h>
#use delay(crystal=4.9152Mhz, clock=19.6608Mhz)
main()
{
for(;;){
... |
|