Files
PTV_Archive/PT5210/DEV/SW/SPG/SYSTEM.C
2022-02-21 12:42:04 +01:00

29 lines
837 B
C

/*
********************************************************************
* Project : PT5210 SYNC
* Filename : SYSTEM.C
* Version : 1.1
* Purpose : System setup
* Org.date : 960703
* Author : PRC
********************************************************************
HISTORY:
970114 RELEASED 1.1
970109 BTRX= 0xaec9 for speed. Demands 70/84 ns PROM access.
*/
#include <xa.h>
void syssetup(void)
{
// System set-up
PSWH= 0x8f; // highest priority for system
BTRH= 0xae; // foer 970107:0xff; EXT. BUS timing, Data Cycle
BTRL= 0xc9; // foer 0xca; EXT. BUS timing, Wr+ALE-pulses+Code
PSWL= 0; // clear flags
SCR= 0; // timer speed prescaler (0 gives 4, 4 gives 16, 8 gives 64)
WDCON= 0;
WFEED1= 0xa5; // stop watchdog (needs food first)
WFEED2= 0x5a;
PSWH= 0x80; // lowest priority for system
}