I am working on a project on lpc2468 and I need to configure the PLL i.e Phase locked loop in it.I am using a main oscillator of 12MHz and Want a PLL output of 60MHz. I am not able to calculate the accurate values of pre-multiplier and pre-divider. plz help how can i calculate them
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&frm=1&source=web&cd=3&ved=0CDYQFjAC&url=http%3A%2F%2Fics.nxp.com%2Fsupport%2Fdocuments%2Fmicrocontrollers%2Fxls%2Flpc23xx.lpc24xx.pll.calculator.xls&ei=q6oNT_P4McehtwexiOylBQ&usg=AFQjCNFRKI9qm2X6baibOTt2_XDgq2vnPQ&sig2=Q2uWcJnMIWJv5IkyHlYV0g
This spread sheet from NXP's website will help you configure your prescalers.
Related
I want to implement a BLDC Motor commutation using STM32f446RE with hall sensor interface. I want to do it with STM32Cube. I know that I should config TIM4 in Hall Sensor Mode and 3 channels of Tim1 in PWM mode with Trigger Source of ITR3 ; but I don't know what should I do after that in the generated code. Could anyone help?
Below is the code snippet of where I am setting my timer6 up
Timer6 Config
I used the datasheet register map
Register map
While debugging my prescaler value and auto reload arent being set.
Im not sure what is missing because when I debug my GPIO register I see them setting. Can someone share some insight or point me in the correct direction?
Thank you in advance
debug periferals
You have a typo in your code. You write RCC->AHB1ENR instead of RCC->APB1ENR, so the TIM6 clock is not enabled.
How to make visible light sensor module from existing LDR module (I have one of it). Both of it have same circuit but different sensors. So,I would like to buy phototransistor separately as LDR is slow to respond to 5mm while LED which flickers at >56000 baud rate.
Circuit Diagram
Can I replace sensor in circuit diagram with TEPT5600 phototransistor official page.
Yes, you can replace the LDR sensor with a phototransistor like TEPT5600/TEPT4400 which works at ~20ns(which is suitable for >9600 BR). The Collector needs to go to pin 2 (+) and the Emitter to pin 1 (-).
We see in all today electronic devices like mobile a Visual battery charging indicator,that a graphical Container composed of bars that increases one by one when the battery is charged for long, and decreases one by one when the mobile is used for long time.
I see the same thing laptop in every GUI operating system like windows and Linux.
I am not sure whether i am posting in the right place, because this requires a System Programmer and Electrical Engineer.
A Visual view of my Question is here:
http://gickr.com/results4/anim_eaccb534-1b58-ec74-697d-cd082c367a25.gif
I am thinking from long long ago , under what logic this works?
How the Program is managed to Monitor the battery.
I made a simple logic based on Amps-hour, that how much time the bar should increase when the battery is in charging mode.??? But that does not work perfectly for me.
Also i read a battery indicator Android application source code of my fried, but the function he used were System Calls based on Andriod Kernel (Linux Kernel).
I need the thing from the scratch....
I need this logic to know............. Because i am working on an Operating system kernel project, which later on will need battery charging monitor.
But the thing i will implement right now is to show just percentage on the Console Screen.
Please give me an idea how i can do it.... Thanks in Advance
Integrating amps over time is not a reliable way to code a battery meter. Use voltage instead.
Refer to the battery's datasheet for a graph of (approximate) voltage vs. charge level.
Obtain an analog input to your CPU. If it's a microcontroller with a built-in ADC, then hopefully that's sufficient.
Plug a reference voltage (e.g. a zener diode) into the analog input. As the power supply voltage decreases, the reference will appear to increase because the ADC only measures voltage proportionally. The CPU may include a built-in reference voltage generator that you can mux to the ADC, or the ADC might always measure relative to a fixed reference instead of rail-to-rail. Consult the ADC manual (or ADC section of micro controller manual) for details.
Ensure that the ADC provides sufficient accuracy.
Sample the battery level and run a simple low-pass filter to eliminate noise, like displayed_level = (displayed_level * 0.95) + (measured_level * 0.05). Run that through an approximate function mapping the apparent reference voltage to the charge level.
Display the charge level.
I have an Arduino clone Edison board with an FT801 graphics chip on it. While attempting to run the example sketches with the chip I encounter a chip id error. It's reporting the chip id as 3C074D54 which doesn't match the expected FT801 constant of 10108. From what I can tell the ID should be unique so why then would their sample code include:
if(FT801_CHIPID != chipid)
Could it be a counterfeit chip?
Stephen
May be when they tested the sample code, they used a chip whose ID was 10108 but on the actual board they are using the different chip. They said rightfully..You need to comment out that line to reject any chip ID checking mechanisms. Moreover you can also edit the firmware to suit your chip ID..but before doing that please read its data sheet properly and if possible then try to cross check it several time before updating your firmware.