All of the config. mentioned in previous reply.
In fact remain code includes set port , reset port etc.
xtal=11.0592Mhz
LVP=disable
WDT=dis.
HS=en.
Search found 13 matches
- 18 Oct 2015 08:18
- Forum: mikroBasic General
- Topic: 24c02 pic interface problem
- Replies: 7
- Views: 4940
- 14 Oct 2015 15:34
- Forum: mikroBasic General
- Topic: 24c02 pic interface problem
- Replies: 7
- Views: 4940
Re: 24c02 pic interface problem
pic18f452 At24c02 At34c02 the brief code: ////////////////////////// .... main: ... setBit(SSPSTAT, 7) setBit(SSPCON1, 5) 'Synchronous Serial Port Enabled ClearBit(SSPCON1, 0) ClearBit(SSPCON1, 1) ClearBit(SSPCON1, 2) setBit(SSPCON1, 3) 'Master mode SSPADD=$1A .... sub procedure bwrt setBit(SSPCON2,...
- 13 Oct 2015 08:54
- Forum: mikroBasic General
- Topic: 24c02 pic interface problem
- Replies: 7
- Views: 4940
Re: 24c02 pic interface problem
yes.
I saw many ex. programs.
all of them was written in same way.
I tested my program on 34c02 and everything was ok. but when I want to work with 24c02 my code isn't applicable!
I saw many ex. programs.
all of them was written in same way.
I tested my program on 34c02 and everything was ok. but when I want to work with 24c02 my code isn't applicable!
- 03 Oct 2015 22:46
- Forum: mikroBasic General
- Topic: 24c02 pic interface problem
- Replies: 7
- Views: 4940
24c02 pic interface problem
Hi.
For ex. the eeprom is set to A8 hex address, but It responds to every adrs!
also when I use two memories with dif. adrs both of them respond to every adrs and grab same data in same adrs in same call from micro!
How I can solve it?
For ex. the eeprom is set to A8 hex address, but It responds to every adrs!
also when I use two memories with dif. adrs both of them respond to every adrs and grab same data in same adrs in same call from micro!
How I can solve it?
- 26 May 2014 09:00
- Forum: mikroC PRO for PIC General
- Topic: spi eeprom isp programming
- Replies: 1
- Views: 1116
spi eeprom isp programming
Hello.
Does any body know how I can access to an eeprom memory through ISP?
Read/erase/write has failure when it soldered on the board!
But when I desolder it from the board, everything is OK.
The memory uses SPI protocol.
Does any body know how I can access to an eeprom memory through ISP?
Read/erase/write has failure when it soldered on the board!
But when I desolder it from the board, everything is OK.
The memory uses SPI protocol.
- 29 Jan 2010 10:40
- Forum: mikroC PRO for PIC General
- Topic: I need MMC_FAT help, Can someone please try this
- Replies: 24
- Views: 9802
copy this simplified code to mikroc: unsigned char ftint; void main(){ ADCON1 = 0x0F; // Configure all ports with analog function as digital Usart_Init(19200); delay_ms(100); // Initialize the SPI module Spi_Init_Advanced(MASTER_OSC_DIV64, DATA_SAMPLE_MIDDLE, CLK_IDLE_LOW, LOW_2_HIGH); Lcd_Custom_Co...
- 28 Jan 2010 13:29
- Forum: mikroC PRO for PIC General
- Topic: I need MMC_FAT help, Can someone please try this
- Replies: 24
- Views: 9802
1.PIC18F452 2.It seem' that micro goes to hang state 3.yes 4.512MB The micro can't run the code exactly.at the beginning of running the code I have to see a constant Sentence e.g. "start",then .... even micro can't display this Sentence. my code contains 3 step: 1.display "start" 2.check if the card...
- 27 Jan 2010 13:26
- Forum: mikroC PRO for PIC General
- Topic: I need MMC_FAT help, Can someone please try this
- Replies: 24
- Views: 9802
also I tried this code but dose not work: unsigned short ftint; void main(){ ADCON1 = 0x0F; // Configure all ports with analog function as digital //CMCON=0x07; // turn off comparators Usart_Init(19200); delay_ms(100); // Initialize the SPI module Spi_Init_Advanced(MASTER_OSC_DIV64, DATA_SAMPLE_MIDD...
- 27 Jan 2010 10:35
- Forum: mikroC PRO for PIC General
- Topic: I need MMC_FAT help, Can someone please try this
- Replies: 24
- Views: 9802
tnx for your reply. sorry.I have copied wrong code.your are right.I corrected it but copied wrong code in this post. any way; my problem is that I can't use "Routines for file handling" codes that mentioned in help.because micro doesn't have any respond for this codes.even when I want to use Mmc_Fat...
- 26 Jan 2010 19:25
- Forum: mikroC General
- Topic: Need Help PIC18f4550 + MMC
- Replies: 4
- Views: 2280
help......
Hello. I have a problem with mmc lib functions.my code is : unsigned int error; char dataBuffer[16]; char txt[7]; short hkl; void main(){ Usart_Init(9600); delay_ms(100); // Initialize the SPI module Spi_Init_Advanced(MASTER_OSC_DIV64, DATA_SAMPLE_MIDDLE, CLK_IDLE_LOW, LOW_2_HIGH); Lcd_Custom_Config...
- 26 Jan 2010 09:05
- Forum: mikroC PRO for PIC General
- Topic: I need MMC_FAT help, Can someone please try this
- Replies: 24
- Views: 9802
Hello. I have a similar problem with mmc and mikroc. When I use this code : void main(){ Usart_Init(9600); delay_ms(100); // Initialize the SPI module Spi_Init_Advanced(MASTER_OSC_DIV64, DATA_SAMPLE_MIDDLE, CLK_IDLE_LOW, LOW_2_HIGH); Lcd_Custom_Config(&PORTB,7,6,5,4,&PORTB,0,1,2); // Initialize LCD ...
- 26 Jan 2010 09:04
- Forum: mikroC PRO for PIC General
- Topic: I need MMC_FAT help, Can someone please try this
- Replies: 24
- Views: 9802
Hello. I have a similar problem with mmc and mikroc. When I use this code : void main(){ Usart_Init(9600); delay_ms(100); // Initialize the SPI module Spi_Init_Advanced(MASTER_OSC_DIV64, DATA_SAMPLE_MIDDLE, CLK_IDLE_LOW, LOW_2_HIGH); Lcd_Custom_Config(&PORTB,7,6,5,4,&PORTB,0,1,2); // Initialize LCD ...
- 21 Jan 2010 18:18
- Forum: mikroC General
- Topic: fuse (XT or HS) on pic18f2550 (don't works)
- Replies: 7
- Views: 3461
device flags
Hello.
I have a question about device flags in mikroc --> project --> edit project
I want to know more about them.for example for use 8MHz internal osc. which of them must be set? How is about external? the meaning of others??????? ..etc.
I have a question about device flags in mikroc --> project --> edit project
I want to know more about them.for example for use 8MHz internal osc. which of them must be set? How is about external? the meaning of others??????? ..etc.