Search found 9 matches

by roro36
09 Nov 2010 12:14
Forum: mikroC General
Topic: LCD_Init for multiple ports
Replies: 1
Views: 1453

Re: LCD_Init for multiple ports

PWM is on Portc5 which is not used by the LCD.
by roro36
09 Nov 2010 12:13
Forum: mikroC General
Topic: LCD_Init for multiple ports
Replies: 1
Views: 1453

LCD_Init for multiple ports

I am using the PIC18F690 which has 20pins, 6 for port A, 8 for port c and 4 for port B. I need the 7 pins to run a LCD screen, 1 pin for a PWM output and 2 ADC inputs. So far the code for the LCD works fine alone, and the PWM code works fine alone, but when I put them together the PWM period doesn't...
by roro36
05 Nov 2010 08:33
Forum: mikroC General
Topic: Button code query
Replies: 2
Views: 1446

Re: Button code query

Thanks, will try this out.
by roro36
04 Nov 2010 13:35
Forum: mikroC General
Topic: Button code query
Replies: 2
Views: 1446

Button code query

Not quite sure what the numbers mean in this following line:

if (Button(&PORTB, 4, 1, 1))

Portb pin 4 then what do the 2 1's mean?
by roro36
05 Oct 2010 13:58
Forum: mikroC General
Topic: PWM Resolution
Replies: 1
Views: 1284

PWM Resolution

Did the tem ever come up with a 10bit PWM resolution?
by roro36
28 Sep 2010 07:46
Forum: mikroC General
Topic: Button loop not working
Replies: 1
Views: 1087

Button loop not working

My code is trying to just swap the state of the output of portC. Originally, RC0 is on and RC1 and RC2 are off. When the button is pressed it should alter the state of the LEDs connected to PORTC. When I switch on, RC0 lights up and this is correct. When I press either button on B4 or B5 the lights ...
by roro36
27 Sep 2010 12:48
Forum: mikroC General
Topic: Starting to get frustrated with pin control
Replies: 1
Views: 1021

Starting to get frustrated with pin control

I'm trying to get the individual pins on my 16f690 to be controlled individually, like turn them on and off when I want. Seems like a stupid question but its not working for me. I can get my LCD working and PWM working, but to get an led to turn on and off on a pin is too hard as is working a button...
by roro36
21 Sep 2010 09:25
Forum: mikroC PRO for PIC General
Topic: For just wont work
Replies: 10
Views: 2903

Re: For just wont work

Oh my Hat! I would never have got that. You're awesome. Shot.


slavisa.zlatanovic wrote:Hi!

These two lines must be written in this order and your program will compile successfully:

Code: Select all

int i;
PORTC = ~PORTC;
Best regards
Slavisa
by roro36
21 Sep 2010 08:18
Forum: mikroC PRO for PIC General
Topic: For just wont work
Replies: 10
Views: 2903

For just wont work

The following code gives merrors such as invalid expression and undeclared identifier all pointing to the "for (..." line Its so stupidly simple, i;m not sure why its not working. void main() { PORTC = 0; // Initialize PORTC TRISC = 0; // Configure PORTC as output while(1) { PORTC = ~PORTC; int i; f...

Go to advanced search