Have just glanced at your code, first thing I noticed was
You have 2 declarations for Port B.6 this may well be your problem
TVSDA VAR PORTB.4 '0 OUTPUT pin 11 stv was b.1
CS0 VAR PORTB.6 '0 OUTPUT pin 13 stv was b.0 <<<<<<<<<<<<<<<<<<<<<<<<<
TVSCL VAR PORTB.5 '0 OUTPUT pin 12 stv was b.5
SYNCH0 VAR PORTB.7 '1 'INPUT to pin 7 stvchip was b.2
HEARTBEAT VAR PORTB.6 'OUTPUT 0 led was b.6 <<<<<<<<<<<<<<<<<<<<<<<<<<<<
I will have another look tomorrow as it is bedtime over here (UK) and I am tired.
Thought.... as you are only using digital ports PORT B you do not need the include file.
The file just makes all Analog ports digital - it works fine on 628a and others BUT may not work on newer chips, as I mostly use these or similar.




Bookmarks