Author |
Message |
Topic: CCS ICD-U40 failed to program |
akokyaw
Replies: 1
Views: 25890
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Fri Oct 22, 2010 2:06 am Subject: CCS ICD-U40 failed to program |
Hi dude,
I've a CCS ICD-U40 (firmware 2.85) and use ccsload program to flash 18F4680, and there is an error about configuration bits unmatched. I use Microchip ICD2 and it can flash the c ... |
Topic: Timer based Real Time Clock (RTC) |
akokyaw
Replies: 57
Views: 561362
|
Forum: Code Library Posted: Mon Aug 06, 2007 7:54 am Subject: Timer based Real Time Clock (RTC) |
smart calculation that can be compensate decimal part too.
Thank for your code,
pak |
Topic: Please help with ADS7825 16-bit ADC |
akokyaw
Replies: 5
Views: 7698
|
Forum: General CCS C Discussion Posted: Fri Jul 06, 2007 5:55 am Subject: ADS7825 16-bit ADC |
Thank for reply, PCM programmer
I have tried signed int16 variable for read back value. The followings are what I got:
For -10V to -5V -> the read back value = 0 to 32768
For -5V to ... |
Topic: Please help with ADS7825 16-bit ADC |
akokyaw
Replies: 5
Views: 7698
|
Forum: General CCS C Discussion Posted: Thu Jul 05, 2007 7:17 pm Subject: Please help with ADS7825 16-bit ADC |
Hello,
I have read back problem with ADC7825 which is 16-bit ADC, bipolar 10V. After interfacing with this chip, the read back values are as follow:
For -10V to 0 -> the read back value = ... |
Topic: DS1302 with 12 hr format |
akokyaw
Replies: 7
Views: 10919
|
Forum: General CCS C Discussion Posted: Wed Jan 03, 2007 8:21 am Subject: DS1302 with 12 hr format |
Hi Ttelmah,
Thank for your code. And can I ask some questions, pls? How do you define PM?
#define PMBIT 0x20
//sending the hours _to_ the chip
//-----------------
int8 regval;
regv ... |
Topic: DS1302 with 12 hr format |
akokyaw
Replies: 7
Views: 10919
|
Forum: General CCS C Discussion Posted: Tue Jan 02, 2007 11:12 pm Subject: DS1302 with 12 hr format |
Hi Ttelmah,
Thank you for replying. In 12hr mode (AM), your suggested code is the same as my code i.e, get_bcd(11) | 0x80 = 0x91
write_ds1302(0x84,get_bcd(11) | 0x80);
... |
Topic: DS1302 with 12 hr format |
akokyaw
Replies: 7
Views: 10919
|
Forum: General CCS C Discussion Posted: Tue Jan 02, 2007 9:54 am Subject: DS1302 with 12 hr format |
Hi,
I try to wirte RTC program with DS1302. The DS1302 can be run in either 12-hour or 24-hour mode. In example of CCS, it used 24hr format. I would like to changed to 12hr format. According to da ... |
Topic: MCP3201 (microchip) is 12 bit adc |
akokyaw
Replies: 5
Views: 14021
|
Forum: General CCS C Discussion Posted: Sun Aug 13, 2006 1:08 am Subject: MCP3202 |
Hi,
Try this code,
#include <16F877.h>
#fuses XT,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) // Jumpers: 8 to ... |
Topic: WORKAROUND INCLUDED: ICD Verification Fails On CONFIG Fuses |
akokyaw
Replies: 10
Views: 59817
|
Forum: CCS ICD / Mach X / Load-n-Go Posted: Fri Jul 28, 2006 11:01 am Subject: ICD Verification Fails On CONFIG Fuses |
Hi,
I used ICD-U40 with my own prototype board and found ICD verification fail problem. I used 18F452. After some experiment, I found that grounding caused the problem because of USB power. So I ... |
Topic: How to record eeprom data via PIC |
akokyaw
Replies: 0
Views: 3198
|
Forum: General CCS C Discussion Posted: Sat Jul 15, 2006 6:36 am Subject: How to record eeprom data via PIC |
Hi,
I am going to make eeprom programmer with PIC16F877. The type of eeprom will be I2C(24C04) and Microwire(93C46). As we have a source code to read/write data from/to eeprom. In this case, I wa ... |
Topic: LCD Bargraph |
akokyaw
Replies: 20
Views: 171432
|
Forum: Code Library Posted: Fri Jun 02, 2006 9:53 am Subject: Modification of bargraph |
Hi,
I have modified the bargraph that posted by hansknec. The code will clear first bar of every character while value of bar is down, as follows:
/***LCD_bargraph.c*********************** ... |
Topic: Difference between use of USART module and bitbang |
akokyaw
Replies: 3
Views: 5743
|
Forum: General CCS C Discussion Posted: Wed Oct 19, 2005 2:26 am Subject: Difference between use of USART module and bitbang |
Hi,
Thank for reply, Andrew. Now, I understand that bitbang (software) has to use initialization routine while USART module (hardware) has to use interrupt such as (TXIF). Anyway, CCS's printf ... |
Topic: Difference between use of USART module and bitbang |
akokyaw
Replies: 3
Views: 5743
|
Forum: General CCS C Discussion Posted: Tue Oct 18, 2005 6:59 pm Subject: Difference between use of USART module and bitbang |
Hi,
I found that 16F877 has USART module for serial communication. For this application, I have two options for writing code:
(1) by using USART registers such as BRGH, SPBRG (hardware)
(2) b ... |
Topic: How to convert the code in PBP "shiftout" into C? |
akokyaw
Replies: 3
Views: 5981
|
Forum: General CCS C Discussion Posted: Wed Oct 12, 2005 6:40 pm Subject: port variable |
Hi,
Thank for your response, Mark. I agree with you. But the following topic has been shown about port variable. I am not sure this method is indirect method or may be CCS style.
http://www.c ... |
Topic: How to convert the code in PBP "shiftout" into C? |
akokyaw
Replies: 3
Views: 5981
|
Forum: General CCS C Discussion Posted: Wed Oct 12, 2005 9:58 am Subject: How to convert the code in PBP "shiftout" into C? |
Hi everybody,
I would like to know how to convert the code in PBP as "shiftout SI,SCK,1,void ShiftOut (int8 data)
{
output_low(OUT_CLOCK);
if ... |
|