;  Generated by PSoC Designer 5.2.2551
;
include "m8c.inc"
;  Personalization tables 
export LoadConfigTBL_BP_mikroprocesor_Bank1
export LoadConfigTBL_BP_mikroprocesor_Bank0
export LoadConfigTBL_BP_mikroprocesor_Ordered
AREA lit(rom, rel)
LoadConfigTBL_BP_mikroprocesor_Bank0:
;  Instance name ADCINC, User Module ADCINC
;       Instance name ADCINC, Block Name ADC(ASC10)
	db		80h, 90h		;ADCINC_AtoDcr0(ASC10CR0)
	db		81h, 00h		;ADCINC_AtoDcr1(ASC10CR1)
	db		82h, 60h		;ADCINC_AtoDcr2(ASC10CR2)
	db		83h, f0h		;ADCINC_AtoDcr3(ASC10CR3)
;       Instance name ADCINC, Block Name PWM(DBB01)
	db		27h, 00h		;ADCINC_PWMcr0(DBB01CR0)
	db		25h, 00h		;ADCINC_PWMdr1(DBB01DR1)
	db		26h, 01h		;ADCINC_PWMdr2(DBB01DR2)
;  Instance name AMUX8_1, User Module AMUX8
;  Instance name Buffer, User Module PGA
;       Instance name Buffer, Block Name GAIN(ACB00)
	db		71h, feh		;Buffer_GAIN_CR0(ACB00CR0)
	db		72h, 21h		;Buffer_GAIN_CR1(ACB00CR1)
	db		73h, 20h		;Buffer_GAIN_CR2(ACB00CR2)
	db		70h, 00h		;Buffer_GAIN_CR3(ACB00CR3)
;  Instance name Counter8, User Module Counter8
;       Instance name Counter8, Block Name CNTR8(DBB00)
	db		23h, 00h		;Counter8_CONTROL_REG(DBB00CR0)
	db		21h, 9bh		;Counter8_PERIOD_REG(DBB00DR1)
	db		22h, 4eh		;Counter8_COMPARE_REG(DBB00DR2)
;  Instance name H_NAPAJENI, User Module LED
;  Instance name H_POLARITA, User Module LED
;  Instance name I2CHW, User Module I2CHW
;  Instance name PROVOZNI_LED, User Module LED
;  Instance name RefLow, User Module PGA
;       Instance name RefLow, Block Name GAIN(ACB01)
	db		75h, e5h		;RefLow_GAIN_CR0(ACB01CR0)
	db		76h, 23h		;RefLow_GAIN_CR1(ACB01CR1)
	db		77h, 20h		;RefLow_GAIN_CR2(ACB01CR2)
	db		74h, 00h		;RefLow_GAIN_CR3(ACB01CR3)
;  Instance name UART, User Module UART
;       Instance name UART, Block Name RX(DCB03)
	db		2fh, 00h		;UART_RX_CONTROL_REG(DCB03CR0)
	db		2dh, 00h		;UART_(DCB03DR1)
	db		2eh, 00h		;UART_RX_BUFFER_REG (DCB03DR2)
;       Instance name UART, Block Name TX(DCB02)
	db		2bh, 00h		;UART_TX_CONTROL_REG(DCB02CR0)
	db		29h, 00h		;UART_TX_BUFFER_REG (DCB02DR1)
	db		2ah, 00h		;UART_(DCB02DR2)
;  Global Register values Bank 0
	db		60h, 25h		; AnalogColumnInputSelect register (AMX_IN)
	db		66h, 00h		; AnalogComparatorControl1 register (CMP_CR1)
	db		63h, 17h		; AnalogReferenceControl register (ARF_CR)
	db		65h, 00h		; AnalogSyncControl register (ASY_CR)
	db		e6h, 00h		; DecimatorControl_0 register (DEC_CR0)
	db		e7h, 01h		; DecimatorControl_1 register (DEC_CR1)
	db		d6h, 08h		; I2CConfig register (I2CCFG)
	db		b0h, 00h		; Row_0_InputMux register (RDI0RI)
	db		b1h, 00h		; Row_0_InputSync register (RDI0SYN)
	db		b2h, 00h		; Row_0_LogicInputAMux register (RDI0IS)
	db		b3h, 33h		; Row_0_LogicSelect_0 register (RDI0LT0)
	db		b4h, 33h		; Row_0_LogicSelect_1 register (RDI0LT1)
	db		b5h, 00h		; Row_0_OutputDrive_0 register (RDI0SRO0)
	db		b6h, 01h		; Row_0_OutputDrive_1 register (RDI0SRO1)
	db		b8h, 55h		; Row_1_InputMux register (RDI1RI)
	db		b9h, 00h		; Row_1_InputSync register (RDI1SYN)
	db		bah, 10h		; Row_1_LogicInputAMux register (RDI1IS)
	db		bbh, 33h		; Row_1_LogicSelect_0 register (RDI1LT0)
	db		bch, 33h		; Row_1_LogicSelect_1 register (RDI1LT1)
	db		bdh, 00h		; Row_1_OutputDrive_0 register (RDI1SRO0)
	db		beh, 00h		; Row_1_OutputDrive_1 register (RDI1SRO1)
	db		ffh
LoadConfigTBL_BP_mikroprocesor_Bank1:
;  Instance name ADCINC, User Module ADCINC
;       Instance name ADCINC, Block Name ADC(ASC10)
;       Instance name ADCINC, Block Name PWM(DBB01)
	db		24h, 31h		;ADCINC_PWMfn(DBB01FN)
	db		25h, 16h		;ADCINC_PWMsl(DBB01IN)
	db		26h, 40h		;ADCINC_PWMos(DBB01OU)
;  Instance name AMUX8_1, User Module AMUX8
;  Instance name Buffer, User Module PGA
;       Instance name Buffer, Block Name GAIN(ACB00)
;  Instance name Counter8, User Module Counter8
;       Instance name Counter8, Block Name CNTR8(DBB00)
	db		20h, 61h		;Counter8_FUNC_REG(DBB00FN)
	db		21h, 15h		;Counter8_INPUT_REG(DBB00IN)
	db		22h, 00h		;Counter8_OUTPUT_REG(DBB00OU)
;  Instance name H_NAPAJENI, User Module LED
;  Instance name H_POLARITA, User Module LED
;  Instance name I2CHW, User Module I2CHW
;  Instance name PROVOZNI_LED, User Module LED
;  Instance name RefLow, User Module PGA
;       Instance name RefLow, Block Name GAIN(ACB01)
;  Instance name UART, User Module UART
;       Instance name UART, Block Name RX(DCB03)
	db		2ch, 05h		;UART_RX_FUNC_REG   (DCB03FN)
	db		2dh, d2h		;UART_RX_INPUT_REG  (DCB03IN)
	db		2eh, 00h		;UART_RX_OUTPUT_REG (DCB03OU)
;       Instance name UART, Block Name TX(DCB02)
	db		28h, 1dh		;UART_TX_FUNC_REG   (DCB02FN)
	db		29h, 02h		;UART_TX_INPUT_REG  (DCB02IN)
	db		2ah, 06h		;UART_TX_OUTPUT_REG (DCB02OU)
;  Global Register values Bank 1
	db		61h, 00h		; AnalogClockSelect1 register (CLK_CR1)
	db		69h, 00h		; AnalogClockSelect2 register (CLK_CR2)
	db		60h, 05h		; AnalogColumnClockSelect register (CLK_CR0)
	db		62h, a8h		; AnalogIOControl_0 register (ABF_CR0)
	db		67h, 33h		; AnalogLUTControl0 register (ALT_CR0)
	db		68h, 33h		; AnalogLUTControl1 register (ALT_CR1)
	db		63h, 00h		; AnalogModulatorControl_0 register (AMD_CR0)
	db		66h, 00h		; AnalogModulatorControl_1 register (AMD_CR1)
	db		d1h, 00h		; GlobalDigitalInterconnect_Drive_Even_Input register (GDI_E_IN)
	db		d3h, 00h		; GlobalDigitalInterconnect_Drive_Even_Output register (GDI_E_OU)
	db		d0h, 00h		; GlobalDigitalInterconnect_Drive_Odd_Input register (GDI_O_IN)
	db		d2h, 00h		; GlobalDigitalInterconnect_Drive_Odd_Output register (GDI_O_OU)
	db		e1h, 1bh		; OscillatorControl_1 register (OSC_CR1)
	db		e2h, 00h		; OscillatorControl_2 register (OSC_CR2)
	db		dfh, 05h		; OscillatorControl_3 register (OSC_CR3)
	db		deh, 00h		; OscillatorControl_4 register (OSC_CR4)
	db		ddh, 00h		; OscillatorGlobalBusEnableControl register (OSC_GO_EN)
	db		ffh
AREA psoc_config(rom, rel)
LoadConfigTBL_BP_mikroprocesor_Ordered:
;  Ordered Global Register values
	M8C_SetBank0
	mov	reg[00h], 00h		; Port_0_Data register (PRT0DR)
	M8C_SetBank1
	mov	reg[00h], 00h		; Port_0_DriveMode_0 register (PRT0DM0)
	mov	reg[01h], ffh		; Port_0_DriveMode_1 register (PRT0DM1)
	M8C_SetBank0
	mov	reg[03h], ffh		; Port_0_DriveMode_2 register (PRT0DM2)
	mov	reg[02h], 00h		; Port_0_GlobalSelect register (PRT0GS)
	M8C_SetBank1
	mov	reg[02h], 00h		; Port_0_IntCtrl_0 register (PRT0IC0)
	mov	reg[03h], 00h		; Port_0_IntCtrl_1 register (PRT0IC1)
	M8C_SetBank0
	mov	reg[01h], 00h		; Port_0_IntEn register (PRT0IE)
	mov	reg[04h], a0h		; Port_1_Data register (PRT1DR)
	M8C_SetBank1
	mov	reg[04h], a7h		; Port_1_DriveMode_0 register (PRT1DM0)
	mov	reg[05h], f8h		; Port_1_DriveMode_1 register (PRT1DM1)
	M8C_SetBank0
	mov	reg[07h], f8h		; Port_1_DriveMode_2 register (PRT1DM2)
	mov	reg[06h], 00h		; Port_1_GlobalSelect register (PRT1GS)
	M8C_SetBank1
	mov	reg[06h], 00h		; Port_1_IntCtrl_0 register (PRT1IC0)
	mov	reg[07h], 00h		; Port_1_IntCtrl_1 register (PRT1IC1)
	M8C_SetBank0
	mov	reg[05h], 00h		; Port_1_IntEn register (PRT1IE)
	mov	reg[08h], 00h		; Port_2_Data register (PRT2DR)
	M8C_SetBank1
	mov	reg[08h], 0dh		; Port_2_DriveMode_0 register (PRT2DM0)
	mov	reg[09h], f2h		; Port_2_DriveMode_1 register (PRT2DM1)
	M8C_SetBank0
	mov	reg[0bh], f0h		; Port_2_DriveMode_2 register (PRT2DM2)
	mov	reg[0ah], 06h		; Port_2_GlobalSelect register (PRT2GS)
	M8C_SetBank1
	mov	reg[0ah], 00h		; Port_2_IntCtrl_0 register (PRT2IC0)
	mov	reg[0bh], 00h		; Port_2_IntCtrl_1 register (PRT2IC1)
	M8C_SetBank0
	mov	reg[09h], 00h		; Port_2_IntEn register (PRT2IE)
	mov	reg[0ch], 00h		; Port_3_Data register (PRT3DR)
	M8C_SetBank1
	mov	reg[0ch], 00h		; Port_3_DriveMode_0 register (PRT3DM0)
	mov	reg[0dh], 00h		; Port_3_DriveMode_1 register (PRT3DM1)
	M8C_SetBank0
	mov	reg[0fh], 00h		; Port_3_DriveMode_2 register (PRT3DM2)
	mov	reg[0eh], 00h		; Port_3_GlobalSelect register (PRT3GS)
	M8C_SetBank1
	mov	reg[0eh], 00h		; Port_3_IntCtrl_0 register (PRT3IC0)
	mov	reg[0fh], 00h		; Port_3_IntCtrl_1 register (PRT3IC1)
	M8C_SetBank0
	mov	reg[0dh], 00h		; Port_3_IntEn register (PRT3IE)
	mov	reg[10h], 00h		; Port_4_Data register (PRT4DR)
	M8C_SetBank1
	mov	reg[10h], 00h		; Port_4_DriveMode_0 register (PRT4DM0)
	mov	reg[11h], 00h		; Port_4_DriveMode_1 register (PRT4DM1)
	M8C_SetBank0
	mov	reg[13h], 00h		; Port_4_DriveMode_2 register (PRT4DM2)
	mov	reg[12h], 00h		; Port_4_GlobalSelect register (PRT4GS)
	M8C_SetBank1
	mov	reg[12h], 00h		; Port_4_IntCtrl_0 register (PRT4IC0)
	mov	reg[13h], 00h		; Port_4_IntCtrl_1 register (PRT4IC1)
	M8C_SetBank0
	mov	reg[11h], 00h		; Port_4_IntEn register (PRT4IE)
	mov	reg[14h], 00h		; Port_5_Data register (PRT5DR)
	M8C_SetBank1
	mov	reg[14h], 00h		; Port_5_DriveMode_0 register (PRT5DM0)
	mov	reg[15h], 00h		; Port_5_DriveMode_1 register (PRT5DM1)
	M8C_SetBank0
	mov	reg[17h], 00h		; Port_5_DriveMode_2 register (PRT5DM2)
	mov	reg[16h], 00h		; Port_5_GlobalSelect register (PRT5GS)
	M8C_SetBank1
	mov	reg[16h], 00h		; Port_5_IntCtrl_0 register (PRT5IC0)
	mov	reg[17h], 00h		; Port_5_IntCtrl_1 register (PRT5IC1)
	M8C_SetBank0
	mov	reg[15h], 00h		; Port_5_IntEn register (PRT5IE)
	M8C_SetBank0
	ret


; PSoC Configuration file trailer PsocConfig.asm
