Search found 4 matches
- 01 Dec 2015 17:24
- Forum: mikroBasic PRO for PIC General
- Topic: IRP bit must be set manually for indirect access to '?Loca
- Replies: 27
- Views: 31446
Re: IRP bit must be set manually for indirect access to '?Lo
Use this code for LCD Data, IRP problem will gone... void Lcd_COut(char row, char col, const char *cptr) { char chr = 0; //first, it is used as empty string Lcd_Out(row, col, &chr); //nothing to write but set position. for ( ; chr = *cptr ; ++cptr ) Lcd_Chr_CP(chr); //out in loop } write in code... ...
- 24 Feb 2014 19:23
- Forum: mikroC PRO for PIC General
- Topic: cannot set 50Hz PWM frequency
- Replies: 12
- Views: 8732
Re: cannot set 50Hz PWM frequency
I was trying to generate the 50Hz PWM signal. But it dosen't work. Here is my code: void interrupt() { if(CCP1IF_bit) { CCP1IF_bit = 0;// clear flag Clock1 = 0; } if(TMR2IF_bit) { Clock1 = 0; TMR2IF_bit = 0;//clear flag } } // ISR... void PORT_Init(void) { TRISA = 0xFF; // PORTA input TRISB = 0b0000...
- 11 Feb 2013 15:22
- Forum: User Projects
- Topic: How to use EEPROM of pic16f877A ?
- Replies: 3
- Views: 2235
Re: How to use EEPROM of pic16f877A ?
Hi, I've solved the problem myself. The problem was I'm taken the variable with a fixed determined value in the first. So each time the power resets, MCU is taking the value from that first declared value. That is why the EEPROM was not working.
Now its ok.
Thanks
Now its ok.
Thanks
- 25 Sep 2012 09:46
- Forum: User Projects
- Topic: How to use EEPROM of pic16f877A ?
- Replies: 3
- Views: 2235
How to use EEPROM of pic16f877A ?
How to use EEPROM of pic16f877A? I tried this program. But it doesn't work. This is just a part of the program. The main calculation is done here. int i=0,cnt=0; long tlong, value, askvalue, recentvalue=0; int flag,ss = 0; void display() { ch = (tlong / 10000) % 10; //Lcd_Out(1,3,"Tmp"); Lcd_Out(1,3...