Search found 9 matches
- 09 Nov 2010 12:14
- Forum: mikroC General
- Topic: LCD_Init for multiple ports
- Replies: 1
- Views: 1459
Re: LCD_Init for multiple ports
PWM is on Portc5 which is not used by the LCD.
- 09 Nov 2010 12:13
- Forum: mikroC General
- Topic: LCD_Init for multiple ports
- Replies: 1
- Views: 1459
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...
- 05 Nov 2010 08:33
- Forum: mikroC General
- Topic: Button code query
- Replies: 2
- Views: 1451
Re: Button code query
Thanks, will try this out.
- 04 Nov 2010 13:35
- Forum: mikroC General
- Topic: Button code query
- Replies: 2
- Views: 1451
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?
if (Button(&PORTB, 4, 1, 1))
Portb pin 4 then what do the 2 1's mean?
- 05 Oct 2010 13:58
- Forum: mikroC General
- Topic: PWM Resolution
- Replies: 1
- Views: 1293
PWM Resolution
Did the tem ever come up with a 10bit PWM resolution?
- 28 Sep 2010 07:46
- Forum: mikroC General
- Topic: Button loop not working
- Replies: 1
- Views: 1098
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 ...
- 27 Sep 2010 12:48
- Forum: mikroC General
- Topic: Starting to get frustrated with pin control
- Replies: 1
- Views: 1036
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...
- 21 Sep 2010 09:25
- Forum: mikroC PRO for PIC General
- Topic: For just wont work
- Replies: 10
- Views: 2904
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:Best regardsCode: Select all
int i; PORTC = ~PORTC;
Slavisa
- 21 Sep 2010 08:18
- Forum: mikroC PRO for PIC General
- Topic: For just wont work
- Replies: 10
- Views: 2904
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...