Author |
Message |
Topic: Atmel AT45DB041 write & read data problem -- CCS Driver |
jacquesdejager
Replies: 8
Views: 10705
|
Forum: General CCS C Discussion Posted: Fri Nov 23, 2012 3:55 pm Subject: Atmel AT45DB041 write & read data problem -- CCS Driver |
Hello --
I finally found the problem, the flash chip used in the board im using is of a very old revision, the opcode's used in the driver is in some cases not recognized by the revision of the chi ... |
Topic: Atmel AT45DB041 write & read data problem -- CCS Driver |
jacquesdejager
Replies: 8
Views: 10705
|
Forum: General CCS C Discussion Posted: Thu Nov 22, 2012 1:09 am Subject: Atmel AT45DB041 write & read data problem -- CCS Driver |
The AT45DB041 driver from CCS is included in the CCS TCP/IP stack.
This is the code I published online, from the TCP/IP stack add-on. |
Topic: Atmel AT45DB041 write & read data problem -- CCS Driver |
jacquesdejager
Replies: 8
Views: 10705
|
Forum: General CCS C Discussion Posted: Wed Nov 21, 2012 12:28 pm Subject: Atmel AT45DB041 write & read data problem -- CCS Driver |
I'm using the Olimex Maxi Web board based on PIC18F97J60.
The EEPROM does work with the Microchip Stack - loaded when you buy the board, pictures and html pages stored in the EEPROM.
I think fro ... |
Topic: Atmel AT45DB041 write & read data problem -- CCS Driver |
jacquesdejager
Replies: 8
Views: 10705
|
Forum: General CCS C Discussion Posted: Wed Nov 21, 2012 12:25 pm Subject: Atmel AT45DB041 write & read data problem -- CCS Driver |
Hello Ttelmah -
I modified the at45db041 driver from CCS --
#define FLASH_BUFFER_SIZE 264 //bytes per page
#define FLASH_BUFFER_COUNT 4096 //page count
to this for the AT4 ... |
Topic: Atmel AT45DB041 write & read data problem -- CCS Driver |
jacquesdejager
Replies: 8
Views: 10705
|
Forum: General CCS C Discussion Posted: Wed Nov 21, 2012 8:30 am Subject: Atmel AT45DB041 write & read data problem -- CCS Driver |
No one have problems with this, or alternative driver ?
I'm using a Olimex board, if it was my own board I wouldn't have installed such an eeprom for my application. |
Topic: Atmel AT45DB041 write & read data problem -- CCS Driver |
jacquesdejager
Replies: 8
Views: 10705
|
Forum: General CCS C Discussion Posted: Tue Nov 20, 2012 2:04 pm Subject: Atmel AT45DB041 write & read data problem -- CCS Driver |
Hello Guys
My problem is as follows, using the CCS provided at45db041.c driver.
Writing a byte (int8) of 240 dec or 0b1111 0000 to the EEPROM returns 249 or 0b1111 1001 .
When I write data th ... |
Topic: MCP9801 issues with LSB |
jacquesdejager
Replies: 6
Views: 8729
|
Forum: General CCS C Discussion Posted: Sun Nov 06, 2011 11:37 am Subject: MCP9801 issues with LSB |
Hello temtronic --
You are right, all work out well now !!
iRawReading = make16(iRawReadingH,iRawReadingL);
iRawReading >>= 4;
*pTempAbs = iRawReadi ... |
Topic: MCP9801 issues with LSB |
jacquesdejager
Replies: 6
Views: 8729
|
Forum: General CCS C Discussion Posted: Sun Nov 06, 2011 8:37 am Subject: MCP9801 issues with LSB |
Hello Douglas --
I understand the notation systems, but why should I do the calculation twice to get to the right answer, is it better to convert the answer to BCD then ?
Looks like this is what ... |
Topic: MCP9801 issues with LSB |
jacquesdejager
Replies: 6
Views: 8729
|
Forum: General CCS C Discussion Posted: Sun Nov 06, 2011 6:27 am Subject: MCP9801 issues with LSB |
Hello temtronic --
Thank you for prompt response.
I resolve the problem, still doesn't explain why I need to multiply the value twice with the value 2^-4.
The datasheet indicate that you onl ... |
Topic: MCP9801 issues with LSB |
jacquesdejager
Replies: 6
Views: 8729
|
Forum: General CCS C Discussion Posted: Sat Nov 05, 2011 12:47 am Subject: MCP9801 issues with LSB |
Hello guys --
The LSB returned from a MCP9801 is not correct, to do a repeated start condition is it correct in doing the following --
int8 byteM = 0;
int8 byteL = 0;
i2c_start(); ... |
Topic: PIC16F87x Hardware I2C Function - 24C256 used for demo code |
jacquesdejager
Replies: 0
Views: 24897
|
Forum: Code Library Posted: Mon Apr 25, 2011 6:21 am Subject: PIC16F87x Hardware I2C Function - 24C256 used for demo code |
Hi -
Please find below code for hardware i2c on PIC16F87x tested, should work on other PIC micro controllers as well.
I've tested this with a 24C256 EEPROM and all working, still need to impleme ... |
|