Thank you Felip, I will try that!
Marc
Search found 44 matches
- 13 Nov 2018 22:12
- Forum: mikroProg™ programmer and debugger
- Topic: My first attempt with ICSP
- Replies: 2
- Views: 1313
- 07 Nov 2018 20:26
- Forum: mikroProg™ programmer and debugger
- Topic: My first attempt with ICSP
- Replies: 2
- Views: 1313
My first attempt with ICSP
Hi, I’ve been doing PIC based circuit designs for many years now, but I have never used ICSP. Now I designed and built a circuit and I would like to use ICSP to program the PIC without removing it from its socket. But there are some points that I’m not 100% confident and I would like some help just ...
- 16 Aug 2017 16:53
- Forum: mikroC PRO for PIC General
- Topic: CCP Capture and Timer1 for precison time measurement
- Replies: 2
- Views: 1400
Re: CCP Capture and Timer1 for precison time measurement
Thanks paulfjujo, I will try that. For the moment, I examined my code and I incremented the duration_tic variable by a value of 6 before calling the ShowResults() function. This is to compensate for the time spent between the moment where the stimulus is detected ( while ( PORTA.F0 == 0 ); ) and the...
- 15 Aug 2017 16:56
- Forum: mikroC PRO for PIC General
- Topic: CCP Capture and Timer1 for precison time measurement
- Replies: 2
- Views: 1400
CCP Capture and Timer1 for precison time measurement
Hi, I developped a small program to measure the time it takes for a subject to respond to a stimulus. The stimulus (a short beep) is generated by a PC and at the same time a positive pulse (200 ms) is sent to a PIC18F4620 (RA0). The PIC then starts its timer until the subject press a button connecte...
- 15 Sep 2016 20:35
- Forum: mikroC PRO for PIC General
- Topic: Driver for RGB led matrix
- Replies: 3
- Views: 1620
Re: Driver for RGB led matrix
Thank you Lana for the information, you confirm my my impressions. By the way, is the "Matrix RGB click" board from mE would give the same results? Is it easier to implement?
Thanks a lot!
Marc
Thanks a lot!
Marc
- 13 Sep 2016 20:24
- Forum: mikroC PRO for PIC General
- Topic: Driver for RGB led matrix
- Replies: 3
- Views: 1620
Driver for RGB led matrix
Hi, I would like to build an 8x8 RGB led matrix that would be controlled by a PIC18. The intensity of each color of a RGB led would be controlled by PWM (8 bit resolution min.). I would like to find an IC (driver) that has 8 independant PWMs, so that a complete row of LEDs would be active simultaneo...
- 22 Dec 2014 17:26
- Forum: mikroC PRO for PIC General
- Topic: PWM2 and Timer1 conflict
- Replies: 2
- Views: 1599
Re: PWM2 and Timer1 conflict
Hi Darko, Thank you but it won't be necessary because I solved the problem. After testing, the culprit appeared to be in this line: T1CON.T1OSCEN = 1;// bit 3 Timer1 Oscillator Enable Control: bit 1=on By setting T1OSCEN to 0, the PWM2 now works perfectly when Timer1 is in function. Even after study...
- 19 Dec 2014 21:53
- Forum: mikroC PRO for PIC General
- Topic: PWM2 and Timer1 conflict
- Replies: 2
- Views: 1599
PWM2 and Timer1 conflict
Hi folks, I built a device based on a PIC18F4620, where a LED is driven by the PWM1 controller of the PIC. The LED must be flashed according to a certain sequence. For this purpose, I use Timer1 to time the sequence. The intensity of the LED is set by the PWM1 duty cycle. Everything is running fine....
- 17 Oct 2014 19:20
- Forum: mikroC PRO for PIC General
- Topic: A RS-232 mystery
- Replies: 7
- Views: 2181
Re: A RS-232 mystery
Hi folks, Ok, I solved the problem this morning: I just swaped wires on pins 2 and 3 of the DB9 and it worked. A stupid mistake, I know! :roll: Android: Yes, it works with OSCCON = 0b01110000. The 2 MSB are set to 0, which means that the Primary oscillator is used. In my configuration bits, FOSC3:FO...
- 16 Oct 2014 20:01
- Forum: mikroC PRO for PIC General
- Topic: A RS-232 mystery
- Replies: 7
- Views: 2181
Re: A RS-232 mystery
Hi, Thank you both for your help, but your suggestions didn't work. paulfjujo: I tried all combinations of CR and LF, but none worked. In fact, with the mE Usart terminal, I don't need neither CR nor LF to work - the device ignores them. Sparky: Yes, I use 9600 bps in mE Usart terminal. Your hypothe...
- 16 Oct 2014 16:21
- Forum: mikroC PRO for PIC General
- Topic: A RS-232 mystery
- Replies: 7
- Views: 2181
A RS-232 mystery
Hi everybody, I'm trying to build a PIC based circuit to control a device (optical filter wheel) via a RS-232 connection. A description of the device can be found here: http://www.flicamera.com/pdf/HSFW_RevB_print.pdf . In short, if I want to select filter #1 I just send character "1", filter #1 cha...
- 20 Jun 2013 20:16
- Forum: mikroC PRO for PIC General
- Topic: Strange interaction between LCD and 4 PWM on a PIC18F46K80
- Replies: 2
- Views: 1759
Re: Strange interaction between LCD and 4 PWM on a PIC18F46K
Hi aCkO,
Thank you, it works fine now. I taught that RD4 (ECCP1) was used only when the enhanced PWM was used, and that the pwm1_ functions concerned CCP2. But I get it now.
Thanks again!
Marc
Thank you, it works fine now. I taught that RD4 (ECCP1) was used only when the enhanced PWM was used, and that the pwm1_ functions concerned CCP2. But I get it now.
Thanks again!
Marc
- 18 Jun 2013 21:14
- Forum: mikroC PRO for PIC General
- Topic: Strange interaction between LCD and 4 PWM on a PIC18F46K80
- Replies: 2
- Views: 1759
Strange interaction between LCD and 4 PWM on a PIC18F46K80
Hi, I built a circuit based on a PIC18F46K80. I chose that chip because it has 4 pwm. I removed from my source file all the spurious code, just to show you the problem. So I have an LCD connected to the pic, and 4 leds to the pwm outputs (which are on pins RC2, RC6, RC7 and RB5). The problem is that...
- 08 May 2012 15:06
- Forum: mikroC PRO for PIC General
- Topic: candle frequencies
- Replies: 4
- Views: 1916
Re: candle frequencies
That's the strangest question I've seen here :| Ok, I make a guess here: you want to drive a light (maybe a led), so that it imitates a candle. I have seen it on some restaurant' tables. If that's your intention, you can modulate the intensity by a sinewave whos frequency would vary randomly between...
- 26 Apr 2012 14:53
- Forum: mikroC PRO for PIC General
- Topic: not enough ROM space.
- Replies: 10
- Views: 4231
Re: not enough ROM space.
This could be a library problem, have you selected all the libraries you are using in library manager? It should not matter, only used libraries will occupy the ROM space, not all those "ticked" in the library manager. There seems to be a large code made by the user, without it there can be only sp...