LED blink - Real time and Quartz Configuration
Posted: Sun Jun 29, 2008 8:01 am
Hi all,
First of all thanks to L. Kerhuel for this very useful blockset. I've installed it succesfully referencing to the animation on the web site. Also, I applied the sinusoidal motor driving example. The blockset compiles succesfully.
So, going one step further, I tried to compile a new project. The aim is simple:
1. Blink a LED connected to Port F.2 infinitely using a pulse on Simulink
2. Drive a LED on Port D.2 if Port B.2 is made logic 1.
The copy of my simulink file is attached to this message.
I've sucessfully compiled the project and generated .hex file. I'm using BigdsPIC board with 30F6014A from Mikroe, I've downloaded the hex file on the board using Mikroe's download program. The program works.
1. The LED on F.2 blinks with a period of about 0.4 sec
2. The LED on D.2 is ON if B.1 is made logic 1.
But, my question is: I want to blink the LED on F.2 with 2 sec period. What can I adjust to make the period to 2 sec with 50% duty cycle?
Regards
First of all thanks to L. Kerhuel for this very useful blockset. I've installed it succesfully referencing to the animation on the web site. Also, I applied the sinusoidal motor driving example. The blockset compiles succesfully.
So, going one step further, I tried to compile a new project. The aim is simple:
1. Blink a LED connected to Port F.2 infinitely using a pulse on Simulink
2. Drive a LED on Port D.2 if Port B.2 is made logic 1.
The copy of my simulink file is attached to this message.
I've sucessfully compiled the project and generated .hex file. I'm using BigdsPIC board with 30F6014A from Mikroe, I've downloaded the hex file on the board using Mikroe's download program. The program works.
1. The LED on F.2 blinks with a period of about 0.4 sec
2. The LED on D.2 is ON if B.1 is made logic 1.
But, my question is: I want to blink the LED on F.2 with 2 sec period. What can I adjust to make the period to 2 sec with 50% duty cycle?
Regards