Search found 258 matches
- 28 Jun 2012 13:13
- Forum: mikroC PRO for PIC General
- Topic: Want simple external interrupt code at port A any pin
- Replies: 5
- Views: 1872
Re: Want simple external interrupt code at port A any pin
ihave tested many codes for external interrupt.. That's progress. i want only one external interrupt on aany pin of port A. but didnt worked. Maybe that's because it may not be possible? Cn someone please post a simplest code for external interrupt on port A? Thanks Look into the datasheet on "exte...
- 28 Jun 2012 12:07
- Forum: mikroC PRO for PIC General
- Topic: pic18f458 memory problem
- Replies: 3
- Views: 1412
Re: pic18f458 memory problem
Your code is wrong.what could be the problem...?
- 27 Jun 2012 01:30
- Forum: mikroC PRO for PIC General
- Topic: using global arrays from timer interrupt
- Replies: 15
- Views: 3759
Re: using global arrays from timer interrupt
The code is wrong, in multiple places.what is the reason?
For example:
Code: Select all
rows[j] = rows[j] >> 1;
- 26 Jun 2012 11:00
- Forum: mikroC PRO for PIC General
- Topic: How to display another character in void display funtion ??
- Replies: 5
- Views: 1690
Re: How to display another character in void display funtion
Yes.Is it possible ?
You can start reading the mikroe book on its compilers / c language. It is a great starting point.How do I modify the programme ? Help me, because i am not familiar with programming using MikroC compiler.
- 26 Jun 2012 10:58
- Forum: mikroC PRO for PIC General
- Topic: using global arrays from timer interrupt
- Replies: 15
- Views: 3759
Re: using global arrays from timer interrupt
Sure.atntias wrote:how do you explain the behavior then?
No need to. We already know why.shuold i post the whole code?
-atntias
- 25 Jun 2012 22:21
- Forum: mikroC PRO for PIC General
- Topic: [help] config GP1 pic12F675 as I/O analog or digital?
- Replies: 3
- Views: 1322
Re: [help] config GP1 pic12F675 as I/O analog or digital?
Read the datasheet and disable any other functions on that pin.
- 25 Jun 2012 22:20
- Forum: mikroC PRO for PIC General
- Topic: using global arrays from timer interrupt
- Replies: 15
- Views: 3759
Re: using global arrays from timer interrupt
No.is there a limitaion on using a global array from inturrpts?
- 25 Jun 2012 11:11
- Forum: mikroC PRO for PIC General
- Topic: Check for interrupts
- Replies: 4
- Views: 1486
Re: Check for interrupts
ok...complete information ... ;) code starts with do...while loop and checks for uart data ready signal OR PIR1.RCIF signal...when it goes high, it will execute the program inside it...the main problem is that my code strucks at RCIF signal...it keeps on waiting for that signal...in the mean while,...
- 24 Jun 2012 13:54
- Forum: mikroC PRO for PIC General
- Topic: Check for interrupts
- Replies: 4
- Views: 1486
Re: Check for interrupts
You can test the uart flag and then execute the corresponding code; or you can use the uart interrupt.
- 23 Jun 2012 10:57
- Forum: mikroC PRO for PIC General
- Topic: Communicating with a ADS7843 Touchscreen Controller
- Replies: 9
- Views: 7144
Re: Communicating with a ADS7843 Touchscreen Controller
That looks more like it, though I would simply return (msb << 8) | lsb; 1) you should check to see if the mcu is sending out the right pulses - scope or logic analyzer. 2) you should also check to see if the controller is performing adc correctly: apply a known voltage to the adc input pins for exam...
- 23 Jun 2012 01:36
- Forum: mikroC PRO for PIC General
- Topic: Communicating with a ADS7843 Touchscreen Controller
- Replies: 9
- Views: 7144
Re: Communicating with a ADS7843 Touchscreen Controller
Having read the datasheet, I can say with a high degree of confidence that your code is not even remotely close to workable.
If you want to code to that chip, read its datasheet.
If you want to code to that chip, read its datasheet.
- 23 Jun 2012 01:03
- Forum: mikroC PRO for PIC General
- Topic: PIC18F46K22 POWER AND GROUND CONNECTIONS
- Replies: 5
- Views: 2077
Re: PIC18F46K22 POWER AND GROUND CONNECTIONS
You can try - that's part of the fun.
In generally, you want them all to be connected to power / ground, respectively. Having said that, I have yet to find a pic where you have to connect them all to get it to work.
In generally, you want them all to be connected to power / ground, respectively. Having said that, I have yet to find a pic where you have to connect them all to get it to work.
- 23 Jun 2012 01:01
- Forum: mikroC PRO for PIC General
- Topic: Communicating with a ADS7843 Touchscreen Controller
- Replies: 9
- Views: 7144
Re: Communicating with a ADS7843 Touchscreen Controller
In the main loop, after you obtain the results from reading ads7843, manually assigned a number to variable "result" and see if your code will transmit that number correctly. This allows you to know if the problem is with the usart part or with the ads7843 reading part. If the issue is with the ads7...
- 22 Jun 2012 02:14
- Forum: mikroC PRO for PIC General
- Topic: LCD
- Replies: 10
- Views: 7453
Re: LCD
The next stage is to wrap the LCDx_() functions. ... #define Lcdx_Init(lcdx) do {LCDx_Select(lcdx); Lcd_Init(); LCDx_Deselect(lcdx);} while (0) #define Lcdx_Cmd(lcdx, cmd) do {LCDx_Select(lcdx); Lcd_Cmd(cmd); LCDx_Deselect(lcdx);} while (0) #define Lcdx_Out(lcdx, x, y, str) do {LCDx_Select(lcdx); Lc...
- 22 Jun 2012 02:05
- Forum: mikroC PRO for PIC General
- Topic: LCD
- Replies: 10
- Views: 7453
Re: LCD
I will give you two. #define LCDx_Select(lcdx) lcdx = 1 //select lcdx #define LCDx_Deselect(lcdx) lcdx = 0 //deselect lcdx // talk to each LCD and display text on each //LCD_1_select(); LCDx_Select(LCDx_1); //select lcd1 LCD_Init(); Lcd_Cmd(_LCD_CLEAR); // Clear display Lcd_Cmd(_LCD_CURSOR_OFF); // ...