Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - asbala

2
Open source USB stack / Re: PIC18F14K50 not working
Hello guys,

I was able to run this, with pickit2. Before i was using MPLAB ICD2. I think ICD2 is not directly compatible to program these devices. But, I was reading the programmed content, but somehow my chip was damaged, when I checked with pickit2. Thanks all of you for your guidance.
3
Open source USB stack / Re: PIC18F14K50 not working
Hello Ian,

Yes the 12MHz is the right crystal i guess. The PLL is fixed to 4, so we get 48MHz for full speed. I just took these config from Honken USB stack found in SVN (from file configWords.h).
4
Open source USB stack / Re: PIC18F14K50 not working
Hello Sjaak,

Thanks for your reply.

I am using the following config: (derived from BPv4 - usb stack)
#elif defined(__18F14K50)

// configword 0x300000
        #pragma config CPUDIV = NOCLKDIV
        #pragma config USBDIV = OFF
        #pragma config FOSC = HS
        #pragma config PLLEN = ON
        #pragma config PCLKEN = ON
        #pragma config FCMEN = OFF
        #pragma config IESO = OFF

// configword 0x300002
        #pragma config PWRTEN = ON
        #pragma config BOREN = OFF
        #pragma config BORV = 30

// configword 0x300003
        #pragma config WDTEN = OFF
        #pragma config WDTPS = 32768

// configword 0x300005
        #pragma config HFOFST = OFF
        #pragma config MCLRE = ON 

// configword 0x300006
        #pragma config STVREN = ON
        #pragma config LVP = OFF
        #pragma config XINST = OFF

// configword 0x300008
        #pragma config CP0 = OFF
        #pragma config CP1 = OFF

// configword 0x300009
        #pragma config CPB = OFF
        #pragma config CPD = OFF

// configword 0x30000a
        #pragma config WRT0 = OFF
        #pragma config WRT1 = OFF

// configword 0x30000b
        #pragma config WRTB = OFF
        #pragma config WRTC = OFF 
        #pragma config WRTD = OFF

// configword 0x30000c
        #pragma config EBTR0 = OFF
        #pragma config EBTR1 = OFF

// configword 0x30000d
        #pragma config EBTRB = OFF
      #include <p18cxxx.h>
      
#endif


My schematics include minimal components like, 12 MHz external quartz crystal, 2x22pF across the crystal, 470nF across Vusb and Gnd; 100nF across VDD and Gnd. 10K resistor from MCLR (pin4) to Vdd (is it right for 14K50?).

Yes, I am writing and reading the memory and I can see the contents. Of course I can see different contents when I flash different firmware.

Do you see any mistakes in this?
5
Open source USB stack / PIC18F14K50 not working
Hello experts,

I am new to this USB stack. Anyways i was reading all your threads and I was successful in running CDC in pic18f4550. But, I tried to use PIC18f14k50, i do not have any connection from the MCU to PC. I tried both Honken USB stack and also from microchip source code for this, but no success. I am just following the schematics from LPC of microchip and using MPLAB ICD2 (i think programmer works, but debugger will not work in this device). Also I am using the latest MPLAB IDE v8.56. I am struggling in this for nearly 3 days without any success. Could you please guide how to make this device to work?

Thanks in advance.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01242312600session_write_close ( )...(null):0
20.01272444176ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01272444952Database_MySQL->query( ).../DatabaseHandler.php:119
40.05572583672Database_MySQL->error( ).../Db-mysql.class.php:273