PDA

View Full Version : Incomplete reception 18F14K50



hadv215
17th April 2012, 13:15
Hi y'all

Still experimenting I found a very strange phenomenon: my PIC18FK50 does not receive all bytes.
I send a 63/64 byte package but the inputbuffer variable contains all zeroes starting at byte 28.
I tested it with a PIC18F4550, but no problems there.

I checked, rechecked and doublechecked the fuses.


Config_Start
; CPUDIV = NOCLKDIV ' No CPU system clock divide
; CPUDIV = CLKDIV3 'divide by 3
CPUDIV = CLKDIV2 'divide by 2

FOSC = HS ' HS, 12 MHz xtal
PLLEN = On ' PLL enabled (x 4)
PCLKEN = On ' primary clock enabled
FCMEN = OFF ' Fail-Safe Clock Monitor disabled
IESO = off ' Oscillator Switchover mode disabled
PWRTEN = On ' PWRT enabled
BOREN = OFF ' Brown-out Reset disabled in hardware and software
BORV = 30 ' Maximum setting
WDTEN = OFF ' HW Disabled - SW Controlled
WDTPS = 1 ' 1:1
MCLRE = On ' MCLR pin enabled; RE3 input pin disabled
STVREN = OFF ' Stack full/underflow will not cause Reset
LVP = OFF ' Single-Supply ICSP disabled
XINST = OFF ' Instruction set extension and Indexed Addressing mode disabled (Legacy mode)
Debug = OFF ' Background debugger disabled, RB6 and RB7 configured as general purpose I/O pins
CP0 = OFF ' Block 0 (000800-001FFFh) not code-protected
CP1 = OFF ' Block 1 (002000-003FFFh) not code-protected
CPB = OFF ' Boot block (000000-0007FFh) not code-protected
CPD = OFF ' Data EEPROM not code-protected
WRT0 = OFF ' Block 0 (000800-001FFFh) not write-protected
WRT1 = OFF ' Block 1 (002000-003FFFh) not write-protected
WRTB = OFF ' Boot block (000000-0007FFh) not write-protected
WRTC = OFF ' Configuration registers (300000-3000FFh) not write-protected
WRTD = OFF ' Data EEPROM not write-protected
EBTR0 = OFF ' Block 0 (000800-001FFFh) not protected from table reads executed in other blocks
EBTR1 = OFF ' Block 1 (002000-003FFFh) not protected from table reads executed in other blocks
EBTRB = OFF ' Boot block (000000-0007FFh) not protected from table reads executed in other blocks
Config_End

Anyone any suggestions?
Regards, Harm