Author |
Message |
Topic: SPI Setup for Linear Tech 16 Bit ADC LTC1864 |
lguancho
Replies: 4
Views: 12518
|
Forum: General CCS C Discussion Posted: Tue May 17, 2005 10:30 pm Subject: SPI Setup for Linear Tech 16 Bit ADC LTC1864 |
Thanks, PCM Programmer and Ckielstra!. I will implement the spi modes as recommended.
About this LTC1864, I find that if I just do two spi-read, the SDATA line will just toogle between HIGH and L ... |
Topic: SPI Setup for Linear Tech 16 Bit ADC LTC1864 |
lguancho
Replies: 4
Views: 12518
|
Forum: General CCS C Discussion Posted: Mon May 16, 2005 10:41 pm Subject: SPI Setup for Linear Tech 16 Bit ADC LTC1864 |
Hi, all. I was experimenting on LTC1864, particularly on how to setup my PIC18F452 (as spi master) to read the 16 bit data. Here are my codes:
#include <18F452.h>
#fuses HS,NOWDT,NOPROTE ... |
Topic: Change I2C Master to I2C Slave On the Fly |
lguancho
Replies: 2
Views: 5339
|
Forum: General CCS C Discussion Posted: Thu Apr 07, 2005 8:03 pm Subject: Change I2C Master to I2C Slave on the Fly |
Hi, Mark. Saw your code before. I am going to try it. Thanks
lguancho |
Topic: Change I2C Master to I2C Slave On the Fly |
lguancho
Replies: 2
Views: 5339
|
Forum: General CCS C Discussion Posted: Wed Apr 06, 2005 4:40 am Subject: Change I2C Master to I2C Slave On the Fly |
Hi,all. I have an application requirement on a PIC18F452 board. This board using a IO pin
int1 Check_Mode(Void)
{
if (MASTER_I2C)
{
Master_Flag=TRUE;
... |
Topic: PIC18F452 in sleep Mode |
lguancho
Replies: 6
Views: 11487
|
Forum: General CCS C Discussion Posted: Thu Mar 24, 2005 1:32 pm Subject: PIC18F452 in sleep mode |
Hi. I also tied the B0 pin to the RX pin (C7) of RS232. C7 is high in RS232 idle state. PIC is waiting for any RX char(causing a H to L transition on RB0) to wake the PIC up. I have been able to wa ... |
Topic: PIC18F452 in sleep Mode |
lguancho
Replies: 6
Views: 11487
|
Forum: General CCS C Discussion Posted: Thu Mar 24, 2005 2:56 am Subject: PIC18F452 in sleep mode |
Hi. The current on my benchtop power supply shows minimal difference when I removed the maxim chip and RS232 cable.
For the compiler, I am using PCWH 3.216 version. For the PIC18F452, I am using ... |
Topic: PIC18F452 in sleep Mode |
lguancho
Replies: 6
Views: 11487
|
Forum: General CCS C Discussion Posted: Thu Mar 24, 2005 1:36 am Subject: PIC18F452 in sleep Mode |
Hi, all. I am trying to put my PIC18F452 into sleep, with WDT enabled. The PIC is running on 20MHz clock (HS), at 5V It will wake up on WDT overflow or EXT INT on pin RB0.
Before going to s ... |
Topic: Winpenny RS485 Source Code Question |
lguancho
Replies: 5
Views: 16960
|
Forum: General CCS C Discussion Posted: Mon Feb 21, 2005 4:28 am Subject: Winpenny RS485 Source Code Question |
Hi,all. I include the header file for the 18F452 and RS485.c and Rs385.h
RS485.C Listing
;
static char cRxCrcHigh, cRxCrcLow;
static char cCalcCrcHigh, cCalcCrcLow;
static char cBufPtr;
... |
Topic: Winpenny RS485 Source Code Question |
lguancho
Replies: 5
Views: 16960
|
Forum: General CCS C Discussion Posted: Mon Feb 21, 2005 4:27 am Subject: Winpenny RS485 Source Code Question |
Hi,all. I include the header file for the 18F452 and RS485.c and Rs385.h
RS485.C Listing
;
static char cRxCrcHigh, cRxCrcLow;
static char cCalcCrcHigh, cCalcCrcLow;
static char cBufPtr;
... |
Topic: Winpenny RS485 Source Code Question |
lguancho
Replies: 1
Views: 5684
|
Forum: General CCS C Discussion Posted: Fri Feb 18, 2005 2:59 am Subject: Winpenny RS485 Source Code Question |
Hi, all. I am trying to port and test Winpenny's RS485 code from Pic16F to Pic18F452. I redefine the register addresses (PORTX, TRISX etc) in the header file. The code could be compiled, and I am t ... |
Topic: Winpenny RS485 Source Code Question |
lguancho
Replies: 5
Views: 16960
|
Forum: General CCS C Discussion Posted: Fri Feb 18, 2005 2:58 am Subject: Winpenny RS485 Source Code Question |
Hi, all. I am trying to port and test Winpenny's RS485 code from Pic16F to Pic18F452. I redefine the register addresses (PORTX, TRISX etc) in the header file. The code could be compiled, and I am t ... |
Topic: Conversion of Ringtone Code (PICC Lite) to CCS |
lguancho
Replies: 2
Views: 15416
|
Forum: General CCS C Discussion Posted: Thu Dec 11, 2003 10:33 pm Subject: Conversion of Ringtone Code (PICC Lite) to CCS |
Hi. I saw the melody code(Ringtone.C) in Beyondlogic website. Wonder anyone have successfully port the code into CCS C? Here is the full code:
include <pic.h>
#define TONE RB0
vo ... |
Topic: Analog DDS Chip AD9854 |
lguancho
Replies: 2
Views: 12781
|
Forum: General CCS C Discussion Posted: Fri Nov 28, 2003 4:08 am Subject: Analog DDS Chip AD9854 |
Hi. I intend to use PIC16F877A to control a 48bit DDS chip AD9854 from Analog device, but am not sure how to implement the frequency calculation code. The formulae is:
Nout[control word] = (Fou ... |
|