hello i have this I2C LCD (20x4) from china:
...
Type: Posts; User: lutherblisset; Keyword(s):
hello i have this I2C LCD (20x4) from china:
...
thank you henrik, the averaging seems to be good but today i will try to check the "zeroing", maybe the problem is there. the Vdd comes from a common 7805 and it's something near 4,97 volts....
i try to work with the adc (12bit) of the pic16f1786. My settings are as follows:
ANSELA = %00010111
ADCON0 = %01111101 ' Using 12 Bit, Fixed Voltage reference
ADCON1 = %11110011 ' 2's...
i try make a 12 bit conversion with this:
define ADC_BITS 12
define ADC_SAMPLEUS 50
adval var word
ADCON0= %00000000
ADCON1= %10000000
trisa=%111111
start:
yes but i would use the pic for other led games too, the musical vu-meter will be only one of them
how i can do it? And the audio signal must be rectified?
he was student92, not me. He asked for monitoring temperature, i dont know why he ask it in this thread....
the 12bit analogic ports and the chance to set the reference voltage to 1.024,2.048,4.096 volts for them
pickit 2.61 don't recognize the pic16f1786, can you help me?
it's not supported? there is a solution?
thanks, now the frequency is 484 hz
Yes now it work, with the frequency counter, measuring the frequency now it's 483 hz, nearly correct for the 1:8 prescaler and 4mhz quartz. The toggle don't half the frequency? For example without...
it's the 16f628a
where i have to point the tmr0 preset to properly work?
mainloop:
if INTCON.2=1 THEN
toggle portb.2
endif
INTCON.2=0
TMR0 = 128 'here don't work
thank you amgen, i have to work with the timers for generate the correct number of pulses for two ports with the lowest possible latency.
anyway the pwm (the only way to have two pulses on different ports of a pic at the same time) it's not good for me cause i work with stepper motors and i have to define closed number of steps, not...
hi richard, i understand. The 31-479 possible pulses of y for every 400 pulses of x are for me necessary, it's impossible for me to change those three parameters. i know it's a problem of "times",...
hi richard, to match the x pulses (1666hz) for the y pulses i need to set a range from 500us (250high+250low) to 7500us (3750high+3750low) the increment can be 50us. For your 3rd question i need your...
what's the lowest possible increment in uS units of the two other timers with 20mhz quartz?
the pwm work good and the frequency counter confirm the exact frequency and its possible to stop it at a fixed point, now i need a second timer to count the y pulses other than 400) with a same time...
400*300+300=240.000 us
1.000.000 us /240.000 us =4,1666666667
4,1666666667*400 pulses =1.666,66666668 hz for one second if the quartz is precise.......
the lowest possible hpwm frequency is 245 hz (for a 4mhz quartz) and 1221hz for a 20mhz quartz, now i have to calculate the frequency of 400 pulses.....
hello richard so its possible to stop the pwm after a fixed time? Maybe its a solution, cause the 400 steps (or always multiply of 400) are fixed, i need only to stop the pwm output after the same...
if i choose the two pic serially connected solution the two separate quartz can produce an error in time or it will be negligible?
simply the stepper motor driver use the input clock to define the steps, one rising pulse is one step, 400 rising pulses are 400 steps