CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Noritake VFD CU20045SCPB-T23A display with HW USART

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
The Puma



Joined: 23 Apr 2004
Posts: 227
Location: The Netherlands

View user's profile Send private message

Noritake VFD CU20045SCPB-T23A display with HW USART
PostPosted: Sat May 13, 2006 3:26 pm     Reply with quote

Did anyone has experience how to drive a this vfd display
with HW USART

BR = 19200 BPS
Non Parity

Please give a sample program how to do
The Puma



Joined: 23 Apr 2004
Posts: 227
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon May 15, 2006 12:14 pm     Reply with quote

I have working sofar with this code

Code:

#include <18F4620.h>
#use delay(clock=20000000)
#use rs232(baud=19200,parity=n,xmit=PIN_C6,rcv=PIN_C7,bits=8)
#fuses HS,NOWDT,NOBROWNOUT,NOPUT,NOLVP,DEBUG,NOSTVREN,NOPROTECT

#include <cu20045scpb-t23a.h>

void main() {
   output_low(CU20045SCPB_BUSY);
   printf("TEST");
   delay_ms(1);
   output_high(CU20045SCPB_BUSY);
}


Code:

#define CU20045SCPB_BUSY  PIN_C0

void vfd_init() {
   output_high(CU20045SCPB_BUSY);
   delay_ms(2);
}

void vfd_send_byte(byte n) {
   output_low(CU20045SCPB_BUSY);
   printf(n);
   delay_ms(2);
   output_high(CU20045SCPB_BUSY);
}

void vfd_putc(char c) {
   switch(c) {
      default  : vfd_send_byte(c); break;
   }
}


But if i change to that it did't work anymore
What is the problem
Code:
#include <18F4620.h>
#use delay(clock=20000000)
#use rs232(baud=19200,parity=n,xmit=PIN_C6,rcv=PIN_C7,bits=8)
#fuses HS,NOWDT,NOBROWNOUT,NOPUT,NOLVP,DEBUG,NOSTVREN,NOPROTECT

#include <cu20045scpb-t23a.h>

void main() {
   vfd_init();
   vfd_putc("TEST");
}
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group