Thread: Ortonview PCB
View Single Post
Old 23rd Oct 2021, 11:28 am   #528
Slothie
Octode
 
Join Date: Apr 2018
Location: Newbury, Berkshire, UK.
Posts: 1,287
Default Re: Ortonview PCB

Quote:
Originally Posted by Phil__G View Post
Quote:
Originally Posted by SiriusHardware View Post
Regarding the apparent sensitivity around the crystal area when using the 887, I'm sure the crystal 'type' in the configuration setup needs to be 'HS' rather than 'XT'
thats right, HS for a 16Mhz crystal. I always set the config word in the source rather than specifying it when programming, one less thing for me to forget...
Yes, I've been playing with it and managed to get it stable by configuring it thus:
Code:
CFG1	EQU _DEBUG_OFF & _LVP_OFF & _FCMEN_OFF & _IESO_OFF & _BOREN_OFF & _CPD_OFF & _CP_OFF & _MCLRE_ON & _PWRTE_OFF & _WDTE_OFF & _FOSC_HS
CFG2	EQU _BOR40V & _WRT_OFF

	__CONFIG _CONFIG1,	CFG1
	__CONFIG _CONFIG2,	CFG2
And initialise the peripherals:
Code:
	ORG	0
	;+changes for '887
	CLRF	ADCON0		;Not sure these    3 strictly necessary after reset...
	CLRF	CM1CON0
	CLRF	CM2CON0
	CLRF	ANSEL		;Disable analogue ports
	CLRF	ANSELH
	;-changes for '887
	MOVLW	B'00010000'	; NRDS pullup others free
And when not connected to the MK14 this is stable, but does not appear to be accessing the "expansion" memory properly, and touching the data lines does not cause random characters as it does with the 877. I need to hook it up to my logic analyser and see if the various signals are OK, its possible there are other things that need initialising.
When I've checked this out and the signals seem plausible I will try connecting it up to the MK14 again.
Slothie is offline