I just bought a VFD from eBay, and i cant actually control it.
I had follow the datasheet provide by the seller, however im still did not manage to control it. I tried to pop the data to a LCD control code(as standard ASCII) and it still nothing happen.
here is my code
--------------------------------------------------------------------------------
#include <htc.h>
#include <pic.h>
__CONFIG (0x0FAC);
__CONFIG (0x1CFF);
#define _XTAL_FREQ 16000000 //for __delay_ purpose
void main(void)
{
OSCCON = 0b01111010; //16MHz Fosc, Int Osc module
TRISA = 0b00000001;
ANSA0 = 0;
TRISB = 0xFF; //data uses
PORTA = 0b00000010;
__delay_ms(1);
PORTB = 0x0F; //show cursor
__delay_us(1);
RA1 = 1; //enable write
__delay_us(300);
RA1 = 0;
__delay_ms(1);
PORTB = 0x7F;
RA1 = 1;
__delay_us(300);
RA1 = 0;
for(;

{
}
}
-----------------------------------------------------------------------
after fail on standard LCD control program, i decide to give a try on the cursor and full print to the screen, however it is again fail
here is the datasheet and eBay link for the item
http://www.jdosher.pwp.blueyonder.co.uk/16x2vfd_7_IEE-03601-16x2-datasheet.pdfhttp://www.ebay.co.uk/itm/16x2-Vacuum-Flourescent-Display-5-volt-with-data-5x7-dot-matrix-8-bit-parallel-/381216029301?pt=LH_DefaultDomain_3&hash=item58c23efa75