Again I am looking at code that seems to be not written for PBP and/or is not complete. If you try and compile the code there are references to missing subroutines such as a subroutine called "buckle" as well as others. You would have to try and compile the code to see all the errors. The compiler seems to not be happy with any of the "$" in the Wdata statements! There is just so much I really do not understand. Here is what I have so far which is very little. I think if I can understand how to send commands to the STV5730 I could maybe make some serious progress? Just as an FYI using a crystal of 17.734475 MHz is for the PAL television standard. 14.318 MHz is for the American NTSC standard What we call "Never Twice the Same Color'!Best, Ed P.S. still have not mastered posting images.
'************************************************* ***************
'* Name : Data-Display.BAS *
'* Author : Ed Cannady *
'* Notice : Copyright (c) 2017 *
'* : All Rights Reserved *
'* Date : 6/3/2017 *
'* Version : 1.0 *
'* Notes : For use with an STV5730 and 18F2520 *
'* : *
'************************************************* ***************
Define osc 20 'SET THE OSCILLATOR SPEED
cmcon=7 'MAKE EVERYTHING DIGITAL
DA VAR PORTC.4 'DATA OUT
CL VAR PORTC.5 'CLOCK
EN VAR PORTC.6 'CHIP ENABLE
W VAR WORD
INIT:
HIGH CL : HIGH DA : HIGH EN 'RESET EVERYTHING
PAUSE 250 'WAIT FOR THE RESET TO HAPPEN
LOW EN ' ENABLE THE STV5730
W=02 'SET THE BAUD RATE TO 9600
?
?
?
HIGH CL : HIGH DA : HIGH EN ' prepare for next command


Best, Ed P.S. still have not mastered posting images.


Bookmarks