I suppose this is a question for Darrel.The DT_Analog module is working great converting the 10 bit analog input on chan 0 of a 18F2550 to 16 bit.To get it to work I had to replace the ADvalue with the hardware register bytes adresh and adresl.Changing ADbits or the defines has no effect,the conversion js always 16 bit.Commenting out either has no effect,it keeps working.If I comment out the gosub GetADC,it stops.If I switch back to using the typical way of reading an analog input,its back to 10 bit.I am using PBP3 and Microcode Studio Plus 5.0.
http://www.darreltaylor.com/DT_Analog/
Bookmarks