Search found 258 matches

by jtemples
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: 1856

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...
by jtemples
28 Jun 2012 12:07
Forum: mikroC PRO for PIC General
Topic: pic18f458 memory problem
Replies: 3
Views: 1398

Re: pic18f458 memory problem

what could be the problem...?
Your code is wrong.
by jtemples
27 Jun 2012 01:30
Forum: mikroC PRO for PIC General
Topic: using global arrays from timer interrupt
Replies: 15
Views: 3743

Re: using global arrays from timer interrupt

what is the reason?
The code is wrong, in multiple places.

For example:

Code: Select all

    rows[j] = rows[j] >> 1;
After the initial run, what do you think will be in rows[]?
by jtemples
26 Jun 2012 11:00
Forum: mikroC PRO for PIC General
Topic: How to display another character in void display funtion ??
Replies: 5
Views: 1673

Re: How to display another character in void display funtion

Is it possible ?
Yes.
How do I modify the programme ? Help me, because i am not familiar with programming using MikroC compiler.
You can start reading the mikroe book on its compilers / c language. It is a great starting point.
by jtemples
26 Jun 2012 10:58
Forum: mikroC PRO for PIC General
Topic: using global arrays from timer interrupt
Replies: 15
Views: 3743

Re: using global arrays from timer interrupt

atntias wrote:how do you explain the behavior then?
Sure.
shuold i post the whole code?
-atntias
No need to. We already know why.
by jtemples
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: 1313

Re: [help] config GP1 pic12F675 as I/O analog or digital?

Read the datasheet and disable any other functions on that pin.
by jtemples
25 Jun 2012 22:20
Forum: mikroC PRO for PIC General
Topic: using global arrays from timer interrupt
Replies: 15
Views: 3743

Re: using global arrays from timer interrupt

is there a limitaion on using a global array from inturrpts?
No.
by jtemples
25 Jun 2012 11:11
Forum: mikroC PRO for PIC General
Topic: Check for interrupts
Replies: 4
Views: 1470

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,...
by jtemples
24 Jun 2012 13:54
Forum: mikroC PRO for PIC General
Topic: Check for interrupts
Replies: 4
Views: 1470

Re: Check for interrupts

You can test the uart flag and then execute the corresponding code; or you can use the uart interrupt.
by jtemples
23 Jun 2012 10:57
Forum: mikroC PRO for PIC General
Topic: Communicating with a ADS7843 Touchscreen Controller
Replies: 9
Views: 7114

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...
by jtemples
23 Jun 2012 01:36
Forum: mikroC PRO for PIC General
Topic: Communicating with a ADS7843 Touchscreen Controller
Replies: 9
Views: 7114

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.
by jtemples
23 Jun 2012 01:03
Forum: mikroC PRO for PIC General
Topic: PIC18F46K22 POWER AND GROUND CONNECTIONS
Replies: 5
Views: 2072

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.
by jtemples
23 Jun 2012 01:01
Forum: mikroC PRO for PIC General
Topic: Communicating with a ADS7843 Touchscreen Controller
Replies: 9
Views: 7114

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...
by jtemples
22 Jun 2012 02:14
Forum: mikroC PRO for PIC General
Topic: LCD
Replies: 10
Views: 7419

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...
by jtemples
22 Jun 2012 02:05
Forum: mikroC PRO for PIC General
Topic: LCD
Replies: 10
Views: 7419

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); // ...

Go to advanced search