As usual - no includes, no ASM, does not require 18F series and so on.
These OLED displays are physically (fully) and in software (partially) compatible with standard 1602 LCD modules, based on...
your understanding is flawed and math is incorrect
Duty is Steps x 0.625% // steps = CCPR1L x4 + CCP1CON<5:4>
so:
80x0.625% = 50% <=> steps = 20x4 + 0
56x0.625% = 35% ...
Richard already covered it but it seems to have been overlooked.
The duty cycle register is 10bit wide but, as Ioannis says, the usable number of bits differs depending on the PWM period. The...
Hi,
That implies one needs to set the Duty Cycle to 80 to get a 4uS On / 4uS Off square wave?
(This does not make sense to me.)
Thanks,
Jay Zebryk
Referencing the Mister e Calculator, it looks like the best resolution you can get is 0 to 160, where 160 will be 100% Duty Cycle.
mpgmike - 27th June 2022, 20:49Ioannis,
Thanks for the feedback!
I have been using the attached calculator from Mister E.
9245
...
It is a 10bit PWM system but the resolution of the PWM signal depends on the PWM period or frequency. Higher the frequency, the lower the resolution.
So, at 20MHz and a frequency signal of 125KHz,...
totally missing the point
CCPR1L = $14 not 14 ; its hex 14 or dec 20
I found this:
https://www.micro-examples.com/public/microex-navig/doc/097-pwm-calculator.html
Which produces this:
PR2 = 0b00001001 ;
T2CON = 0b00000101 ;
CCPR1L = 0b00000100 ;
CCP1CON =...
Re: My "Library" for ST7920 Graphical displays, works fine, but...
Will post "Upgraded" version soon - it now supports individual attributes for all chars, like language, inversion, underline, striketrough. Working on variable width character support too.
CuriousOne Today, 07:409246