Henrik, I am using a rather old pic (18F2620), I still have a couple of hundreds of them. But timing apart your and mine are very similar in the setting of the TAD value and the acquisition time. ...
Type: Posts; User: aratti; Keyword(s):
Henrik, I am using a rather old pic (18F2620), I still have a couple of hundreds of them. But timing apart your and mine are very similar in the setting of the TAD value and the acquisition time. ...
No much to say, just keep your convintions if you are happy with them.
Al.
You cannot use the full function because it is foundamentally a logaritmic function. For the ADC convertion you need a linear function. Once time, resistence and capacity are fixed than the charging...
From the charging function of a capacitor!
Al.
40 us is the value the author arbitrarely gives as acquisition time "sampleus parameter".
Remember:
A too high acquisition time will give issues when the analog input approch the V(ref+)
A...
The 11 TADs is the time taken by the MCU for the 10 bits convertion! Please do not confuse acquisition with convertion. The setting suggested is the time you will give to the sample & hold capacitor...
It is a galvanic isolator. It is also a DC-DC converter but this is just semantic. You need primarely a galvanic isolation.
Alain suggestion to use a voltage to frequency converter, is an...
No! Something like the Texas component slyt211. But there are several others doing the same job.
Cheers
Al.
Is doable using a galvanic isolator.
Cheers
Al.
The sampleus parameter is the time given for the acquisition ( changing the sample & hold capacitor). This timing is critical since you must charge the capacitor no more than 1T..(up to 1T the...
32 MHz is a too high frequency to obtain a good ADC reading. The minimum TAD is 1.6 us and If you set fosc/64 you will get a TAD of 2 us and you are barely inside the correct timing. Since you will...
I think that the number of Logic are limited by the two line space!
But you can do the and Logic with nested if/then like this:
If a>B then
If c>d then
If e>F then
.
.
If x>z then
Why not using a frequency to voltage converter and than use an ADC channel to read the car RPM.
Cheers
Al.
Thank you Tabsoft for the deep search!
I think that this finding should call for an update of the manual (at least)
Cheers
Al.
MyPin = Bell
MyPin = !Mypin 'This will force the logical Not at the bit variable level
Report = MyPin + 48
Thank you Tabsoft for the above snippet. Tested and it works. I have already replaced...
Dave, the tris register is set correctly and the pic18f2620 just do what it should do when the inputs change Logic state. I need to invert the Logic state of the display (it is much more simple to...
Alain, the result of your example : Report = (~ Bell ) + 48 gives 46 when input is high and 47 when the input is low.
Cheers
Al.
Bell var portB.6
Report var byte
main:
Report = ~~(Bell + 48)
debug report
pause 500
goto main
Thank you Dave for the suggestion, but no luck it doesn't work either. With "~" I get ascii 46 when portB.0 is false and the same ascii 47 when the portB.0 is True.
Looking into the manual the...
Bell var portB.0
Report var byte
(PortB.0 is pulled up)
Report = !Bell + 48 or Report = (!Bell) + 48
The value of variable Report = "0" (ascii 48) when portB.0 = True
The value of variable...
Eureka! I found the text file with all the registration keys. It was burried into an archive of an old computer that is a couple of years that I don't use it anymore. I was planning to take it to the...
Since I have lost my registration number and can not find any trace of the purchasing documents (all I remember is that I purchased the gold edition on line via Melab site)
Any suggestion on how...
Matthews I never used the Darrel I2C interrupt so I cannot help you. I did something with I2C few years ago, and I posted a working snippet in this thread...
You can tray at this link:
http://www.picbasic.co.uk/forum/showthread.php?t=19638
Cheers
Al.
Great! Longing to see your code.
Cheers
Al.