Author |
Message |
Topic: Kinda "pointer to function" question! |
Markus
Replies: 7
Views: 13919
|
Forum: General CCS C Discussion Posted: Tue Sep 14, 2004 11:35 am Subject: Kinda "pointer to function" question! |
Mark, you're right. I made this mistake while writing my first post. It _is_ defined as int16 in the project, but that doesn't work (see above)...
Markus |
Topic: Kinda "pointer to function" question! |
Markus
Replies: 7
Views: 13919
|
Forum: General CCS C Discussion Posted: Tue Sep 14, 2004 7:50 am Subject: Kinda "pointer to function" question! |
Heyhey!
This code works:
#device *=16
byte Read(myData index) {
return *index;
}
void main() {
typedef byte *myData;
typedef byte (*rea ... |
Topic: 2 wire SPI |
Markus
Replies: 4
Views: 12929
|
Forum: General CCS C Discussion Posted: Tue Sep 14, 2004 7:32 am Subject: 2 wire SPI |
First of all, I made it work by using a mixture of bitbang and the built-in MSSP module.
Do you have a manufacturer/model# or specifications for the display? It might help to see what it's communic ... |
Topic: 2 wire SPI |
Markus
Replies: 4
Views: 12929
|
Forum: General CCS C Discussion Posted: Thu Sep 09, 2004 6:51 am Subject: 2 wire SPI |
Dear experts,
I'm using a 16LF877A to interface a GLCD with a built-in controller. Unfortunately the display uses some weird sort of SPI hardware. The MOSI and MISO lines are tied together. I conne ... |
Topic: pdiusbd12 |
Markus
Replies: 4
Views: 12660
|
Forum: General CCS C Discussion Posted: Tue Sep 07, 2004 3:50 am Subject: Re: d12 |
Hi nader.
i need a flow chart for when the d12 power up.
I don't have enough time to get through your entire code, sorry. I developed a 16F876A firmware for the D11 several months ago. But I ... |
Topic: pdiusbd12 |
Markus
Replies: 4
Views: 12660
|
Forum: General CCS C Discussion Posted: Mon Sep 06, 2004 1:58 pm Subject: pdiusbd12 |
nader, why don't you post your code on the forum?
You may also want to take a look at www.beyondlogic.org (as I suggested in your other thread) and at John Hyde's examples from his book "USB Design b ... |
Topic: usb |
Markus
Replies: 4
Views: 11636
|
Forum: General CCS C Discussion Posted: Thu Sep 02, 2004 6:46 am Subject: usb |
dyeatman: http://www-us16.semiconductors.com/pip/PDIUSBD12D.html
nader: You may want to take a look at beyondlogic.org. The program is for the PDIUSBD11 and written in HiTech C, though.
Markus |
Topic: 16F877A, TMROIF |
Markus
Replies: 3
Views: 11574
|
Forum: General CCS C Discussion Posted: Tue Aug 24, 2004 5:54 am Subject: 16F877A, TMROIF |
Hi PCM_Programmer,
I don't know if this is complete enough (I can't locate the error myself, so I don't know which part to post).
#int_timer0
void TMR0_isr() {
if (getting ... |
Topic: 16F877A, TMROIF |
Markus
Replies: 3
Views: 11574
|
Forum: General CCS C Discussion Posted: Tue Aug 17, 2004 4:42 am Subject: 16F877A, TMROIF |
Hi,
Does sb. know of a problem with the Timer0 Interrupt Flag (TMR0IF) when set up as RTCC?
I define TMR0 as a RTCC
setup_timer_0(RTCC_EXT_L_TO_H | RTCC_DIV_1);
to count pulses withi ... |
Topic: Is it impossible to poll for ACK with CCSC? |
Markus
Replies: 8
Views: 17684
|
Forum: General CCS C Discussion Posted: Tue Jun 29, 2004 2:39 am Subject: Is it impossible to poll for ACK with CCSC? |
My code above works like a charm. The error was elsewhere in the program.
Sorry for the inconvenience, guys.
Markus |
Topic: Is it impossible to poll for ACK with CCSC? |
Markus
Replies: 8
Views: 17684
|
Forum: General CCS C Discussion Posted: Tue Jun 22, 2004 4:37 am Subject: Is it impossible to poll for ACK with CCSC? |
Hi all,
I'm going nuts!
Why does this code result in an infinite loop?
static void AckPollingI2C(int i2cAddress) {
int1 nack;
i2c_start();
i2c_write(i ... |
Topic: Problem on I2C master 16F877 |
Markus
Replies: 3
Views: 13631
|
Forum: General CCS C Discussion Posted: Thu Feb 26, 2004 5:31 pm Subject: Problem on I2C master 16F877 |
Hi Loic,
is this directive supported by your compiler version? (sorry, never worked with Ver. 3.094)
#device ICD = FALSE
Otherwise try clearing the DEBUG bit (bit 11) of register 14-1 (p. ... |
Topic: Problem on I2C master 16F877 |
Markus
Replies: 3
Views: 13631
|
Forum: General CCS C Discussion Posted: Thu Feb 26, 2004 7:19 am Subject: Problem on I2C master 16F877 |
Hi Loic,
try the following:
1. #fuses HS, NOWDT, NOPUT, NOLVP, NOBROWNOUT, NODEBUG
2. don't forget that setup_spi(FALSE); does also disable the i2c module (you are using the force_hw! ... |
|