Author |
Message |
Topic: write_program_eeprom on 16F887? |
Dutch2
Replies: 1
Views: 5339
|
Forum: General CCS C Discussion Posted: Fri Mar 07, 2008 9:21 am Subject: write_program_eeprom on 16F887? |
PCM version 4.069
I'm confused about the usage of write_program_eeprom on 16F887.
According to the reference manual if FLASH_ERASE_SIZE > FLASH_WRITE_SIZE then write_program_eeprom does not ... |
Topic: Using software serial port causes output pin to stop working |
Dutch2
Replies: 7
Views: 8057
|
Forum: General CCS C Discussion Posted: Sat Feb 02, 2008 10:21 am Subject: Using software serial port causes output pin to stop working |
Whenever I use fast_io for port C it stops working.
I checked another project where I used a software serial port on port B where I did not encounter this issue.
#include <16f876a.h>
#fuses ... |
Topic: Using software serial port causes output pin to stop working |
Dutch2
Replies: 7
Views: 8057
|
Forum: General CCS C Discussion Posted: Fri Feb 01, 2008 6:58 pm Subject: Using software serial port causes output pin to stop working |
Yep, that works. Any idea what is causing this?
Thanks,
D2. |
Topic: Using software serial port causes output pin to stop working |
Dutch2
Replies: 7
Views: 8057
|
Forum: General CCS C Discussion Posted: Fri Feb 01, 2008 6:23 pm Subject: Using software serial port causes output pin to stop working |
#include <16f887.h>
#fuses INTRC_IO,WDT,MCLR,NOPROTECT,BROWNOUT,BORV40,NOLVP
#device ADC=10
#use delay(internal=4M)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, stream=LIN, for ... |
Topic: Using software serial port causes output pin to stop working |
Dutch2
Replies: 7
Views: 8057
|
Forum: General CCS C Discussion Posted: Fri Feb 01, 2008 5:03 pm Subject: Using software serial port causes output pin to stop working |
My project needs to communicate on a LIN bus. I hooked the (home grown) driver to the hardware UART pins on my 16F887 but I forgot that my driver inverts so I fixed it in software by switching to a so ... |
Topic: Use Timer1 to wake up from sleep |
Dutch2
Replies: 2
Views: 5735
|
Forum: General CCS C Discussion Posted: Wed Jan 30, 2008 10:42 pm Subject: Use Timer1 to wake up from sleep |
Forgot this part:
#byte PIE1 = 0x8C
#byte T1CON = 0x10
#byte IntCon = 0x0B
D2. |
Topic: Use Timer1 to wake up from sleep |
Dutch2
Replies: 2
Views: 5735
|
Forum: General CCS C Discussion Posted: Wed Jan 30, 2008 10:39 pm Subject: Use Timer1 to wake up from sleep |
I would like to go to sleep and then wake up via Timer1 on a 16F887:
6.4Timer1 Oscillator
A low-power 32.768kHz crystal oscillator is built-in
between pins T1OSI (input) and T1OSO (amplifier
o ... |
Topic: Program 16F883 with PCM V3.222? |
Dutch2
Replies: 1
Views: 3581
|
Forum: General CCS C Discussion Posted: Fri Oct 05, 2007 8:30 am Subject: Program 16F883 with PCM V3.222? |
I have been using the CCS C compiler for a range of Microchip controllers for a while, and now I would like to use it for the 16F883.
I noticed it is not in the supported devices list. Is this beca ... |
|