Skip to main content

Posts

Showing posts with the label Reference

Hacking the PIC32 Comparator Reference to obtain a DAC

The PIC32MX250F128B has a myriad of peripheral features that makes this cheap little 28-pin 32-bit microcontroller extremely powerful. However, it does lack a digital-to-analog converter (DAC). A simple approach to digital-to-analog conversion is to use one of the PWM channels and then to use an RC low-pass filter at the output. However, there is another neat little feature of the device that can be exploited or rather utilized to obtain a rather crude DAC – the analog comparator module. Rather, the analog comparator reference module. The PIC32MX250F128B contains an internal voltage reference module that was created to be used as a reference voltage for the internal analog comparator module. However, it does allow you to output this reference voltage to an output pin. Analog voltage output with digital control? Sounds like a DAC. The voltage reference module is built off of a 16-tap resistor ladder network with two selectable ranges – from 0 to 0.67 CVREF or from 0.25 to 0.75 CVREF. CV...

Kawasaki KLR250 Oil Filter Cross Reference

We thought that many of you would find this useful. Next time you're looking for an oil filter for your KLR250 motorcycle you won't have to goto the dealer to get one. Here is a cross reference list of oil filters that will fit the Kawasaki KLR 250. Be sure to double check that the filter is the correct one for your bike before use. KLR250 Oil Filter Cross Reference Kawasaki - 16099-004 Amsoil - 24941 Big A - 96950 Big A - 96951 Carquest - 89951 Champ - P7027 Emgo - 10-30000 (Buy) Fram - CH6070 (Buy) Hastings - LF582 HiFloFiltro - HF123 K&N - KN-123 (Buy) Lunefiner - P7027 Napa - 4950 Napa - 4951 Parts Unlimited - 16099-004 (Buy) Purolator - ML16823 (Buy) Purolator - ML16824 Scotts (stainless) - 2148 Warner - P7027 Wix - 24951 (Buy) Note: Although the Fram CH6070 should fit in the KLR we have heard from a few owners who have experienced fitment issues with this filter due to it being a little too long. It seems as though Fram has quality control issues with these filters. I...