CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug Reports on this forum. Send them to support@ccsinfo.com

Request: USB HID Test code for 18LF14K50 12MHz [Solved]
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



Joined: 01 Jul 2010
Posts: 8468
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Oct 23, 2021 5:35 am     Reply with quote

I thought CCS supplied an example, maybe in newer versions of the compilers ?
dyeatman



Joined: 06 Sep 2003
Posts: 1856
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Oct 23, 2021 6:30 am     Reply with quote

Yes. In my latest version compiler I have a total of 42 USB related driver and
example files but, as you know, we are not allowed to post them or give them
to anyone. The OP will have to request them from CCS.
_________________
Google and Forum Search are some of your best tools!!!!
temtronic



Joined: 01 Jul 2010
Posts: 8468
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Oct 23, 2021 7:14 am     Reply with quote

wow ! 42 USB examples !! That's more than the TOTAL number of examples from the 1st version of CCS I bought !!

providing the OP has registered his compiler, CCS will probably send him the 'examples' folder. They did that for me. I asked ,just to see how they 'cut code', to save me time reinventing the wheel .
Ttelmah



Joined: 11 Mar 2010
Posts: 17910

View user's profile Send private message

PostPosted: Sat Oct 23, 2021 8:46 am     Reply with quote

Yes, and the CDC example will work with the LF. All you have to do is change
the header to be for the LF instead of the F, and it runs. The E3 board header
works with the LF chip (I've used it).
PCM programmer



Joined: 06 Sep 2003
Posts: 21615

View user's profile Send private message

PostPosted: Sat Oct 23, 2021 9:32 am     Reply with quote

FFT wrote:
Nobody has a test code?

I have located a board, the PIC, and the USB cable to test this.
I can do it this evening or tomorrow. I don't think you have ever
posted your CCS compiler version. It would be helpful if you did.
I could test it with your version.
Ttelmah



Joined: 11 Mar 2010
Posts: 17910

View user's profile Send private message

PostPosted: Sat Oct 23, 2021 10:24 am     Reply with quote

PCM, I used a board with the same layout as the E3 board, except with a
3.3v supply to the chip. Using compiler 5.101, and just copied the
usb common file to use the LF where the F was used for this board.
5.101 was the latest compiler when I did this, and it ran file with
ex_usb_serial.
So if your board is compatible with the E3, this is where I would start.

Best wishes.
FFT



Joined: 07 Jul 2010
Posts: 92

View user's profile Send private message

PostPosted: Sun Oct 24, 2021 2:35 am     Reply with quote

Hello guys,

I will give you more details;

* Here is my schematic (simplified - usb+pwr only) https://ibb.co/Fn762XN
VBUS pin is connected to 3.3V VCC externally, but I see 3.1V when I cut the connection. I tested both. It seems VBUS is connected to VCC internally too.

* I use CCS v5.104

* I have 12 Mhz NX5032 crystal with 22pF caps

I have shared a test code before, here is the latest code derived from mouse example (please remove if it's not allowed)
I tested several delay configs and fuses but there is absolutely no action when usb is plugged in. PIC's USB plays dead!

Code:
#include <18LF14K50.h>

// I have 12 Mhz NX5032 crystal with 22pF caps
#FUSES NOWDT, CPUDIV1, HS, PLLEN, NOMCLR, NOLVP, NOXINST, PUT, USBDIV1
#use delay(clock=48Mhz)
//#use delay(clock=48MHz,oscillator=12MHz,USB_FULL)
//#use delay(clock=24MHz,oscillator=12MHz,USB_LOW)

//#define USB_USE_FULL_SPEED 0
//#define USB_INTERNAL_PULLUPS 1
//#define USB_EXTERNAL_PULLUPS 1
#define USB_ISR_POLLING 1
#include <pic18_usb.h>
#include <usb_desc_mouse.h>
#include <usb.c>

typedef unsigned int16 TICK;
#use timer(timer=1, bits=16, tick=1ms)

#define MOUSE_UPDATE_RATE_TICKS  (TICKS_PER_SECOND/100)  //10ms rate

void main(void)
{
   TICK t;

   #define MOUSE_SEQUENCE_STEPS  16
   const char mouse_seq[MOUSE_SEQUENCE_STEPS]=
      {0, 1, 3, 4, 4, 4, 3, 1, 0, -1, -3, -4, -4, -4, -3, -1};

   int8 out_data[4];
   unsigned int8 x_seq;
   unsigned int8 y_seq;
   unsigned int8 count;

   x_seq = 0;
   y_seq = MOUSE_SEQUENCE_STEPS/4;
   count = 0;

   delay_ms(100);

   usb_init_cs();

   while (TRUE)
   {
      usb_task();

      if (
            usb_enumerated() &&
            ((get_ticks() - t) > MOUSE_UPDATE_RATE_TICKS) &&
            usb_tbe(1)
         )
      {
         t = get_ticks();

         out_data[0] = 0;
         out_data[1] = mouse_seq[x_seq];
         out_data[2] = mouse_seq[y_seq];
         out_data[3] = 0;

         if (usb_put_packet(1,out_data,4,USB_DTS_TOGGLE))
         {
            if (++count > 10)
            {
               if (++x_seq>=MOUSE_SEQUENCE_STEPS) {x_seq=0;}
               if (++y_seq>=MOUSE_SEQUENCE_STEPS) {y_seq=0;}
               count=0;
            }
         }
      }
   }
}


I started to think that I have a HW issue, such as my original PicKit3 burns the D+ and D- pins of the LF PIC...
I also tested internal pull ups definition but it seems it is already comes defined. So I can test placing an external pullup resistor.

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21615

View user's profile Send private message

PostPosted: Sun Oct 24, 2021 7:07 am     Reply with quote

I made it work right now. I used an 18F14K50 (not LF) running
at +5v. I made a project for Ex_usb_serial.c in MPLAB vs. 8.92.
I used CCS vs. 5.103 simply because it was already installed.
I created the project in the CCS Examples folder, and named the
project "Ex_usb_serial". I added Ex_usb_serial.c to the project.

In Ex_usb_common.h, I commented out this line:
Code:
// #define USB_HW_CCS_PIC24F

and I uncommented this line:
Code:
#define USB_HW_MCHP_18F14K50

Those are the only changes I made to the files.

I installed a 12 MHz crystal on pins 2 and 3 of the PIC, with 22pf caps to
ground on each pin. I have a 10K pullup on pin 4, for MCLR. I have a
10uF tantalum on pin 17 for Vusb because I don't have a .22uf to .47uf
ceramic in stock.

I have D+ and D- and ground connected to the USB connector.

I programmed the PIC with a Pickit 3. It gives a warning about how you
must use an AC164114 adapter. I didn't have one. It worked anyway.
I think the warning may be for older programmers such as ICD 2.

I plugged the USB cable into a Windows 10 Pro system. It enumerated
immediately. Device Manager shows:
Code:

Ports (COM & LPT)
   USB Serial Device (COM3)

I also plugged the USB cable into an older XP system.
The Device Manager says:
Code:

Ports (COM & LPT)
   USB to UART (COM4)

If I pull out the USB cable, those enumerations go away.
Ttelmah



Joined: 11 Mar 2010
Posts: 17910

View user's profile Send private message

PostPosted: Mon Oct 25, 2021 12:34 am     Reply with quote

When you say that you cut the Vusb connection, are you still leaving D+
and D- connected to the USB bus?. If so, what happens then is that the
transceivers get reverse biased, and power is fed through them into the
Vusb pin. I've known people successfully run the USB, without Vusb
connected (though with terrible reliability), because this happens....

There is a possible issue with the resistor values used on your detection
of the usb power connection. You have 10K+15K, so a voltage divider
giving 3v out from 5v. Usb V+, is only warranted to be 4.4v minimum.
The pin you are using for the Vbus detection has a schmitt input, so the
signal needs to get to above 2.64v. If the supply voltage on your USB bus
is at the lower end of the scale, and there is any resistance drop in the
plug, the chip won't be detecting that the bus is powered....
I'd suggest dropping the upper resistor to 8.2k. This might be causing an
issue.
FFT



Joined: 07 Jul 2010
Posts: 92

View user's profile Send private message

PostPosted: Mon Dec 13, 2021 9:55 am     Reply with quote

PCM programmer wrote:
I made it work right now. I used an 18F14K50 (not LF) running
at +5v.

Hi I've tried the same steps using LF one but the situation is the same now. I tried using different PICs, tried to program over MPLAB, tried to program with 3V etc. The only thing I see is that a 3.3V on USB D+ pin which should be the full speed pull-up.
I ordered an F chip, I will test the hex on it.
All chips I programmed look health, all functionality works except USB.

I have 2 questions;
1 - Can you share your working hex file?
2 - Is it possible to run the hex for F on a LF chip (in my case)?

@Ttelmah,
My Vusb pin is connected to 3.3V directly and I have 10uF and 100nF near.
I replaced 10k+15k resistors as you pointed but nothing changed, although I defined the detect pin macro as 1, thus always true for some tests.

BTW; I have seen an issue about chip revision 00000005.
My chip is;
Device ID Revision = 00000006

Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21615

View user's profile Send private message

PostPosted: Mon Dec 13, 2021 6:13 pm     Reply with quote

The hex file shown below was created with CCS vs. 5.105.
I tested it with both Windows 10 and XP and it enumerates.
I think it should also work with the LF PIC. Here are the fuses:
Code:
Configuration Fuses:
   Word  1: 3220   CPUDIV1 USBDIV2 HS PLLEN PCLKEN NOFCMEN NOIESO
   Word  2: 1E19   NOPUT NOBROWNOUT BORV19 NOWDT WDT32768
   Word  3: 0000   NOHFOFST NOMCLR
   Word  4: 0089   STVREN NOLVP BBSIZ2K NOXINST NODEBUG
   Word  5: C003   NOPROTECT NOCPB NOCPD
   Word  6: E003   NOWRT NOWRTC NOWRTB NOWRTD
   Word  7: 4003   NOEBTR NOEBTRB


Hex file:
Code:

:1000000011EF0AF062961200046ED8CF05F0E0CF2F
:1000100006F00001E9CF0CF0EACF07F0E1CF08F0DD
:10002000E2CF09F0D9CF0AF0DACF0BF0F3CF12F01C
:10003000F4CF13F0FACF14F0F5CF15F0F6CF16F099
:10004000F7CF17F000C00EF001C00FF002C010F0A3
:1000500003C011F0A0A430EF00F0A1B419EF07F035
:100060000EC000F00FC001F010C002F011C003F08C
:100070000CC0E9FF07C0EAFF078E08C0E1FF09C016
:10008000E2FF0AC0D9FF0BC0DAFF12C0F3FF13C0B2
:10009000F4FF14C0FAFF15C0F5FF16C0F6FF17C035
:1000A000F7FF045006C0E0FF05C0D8FF1000F76A54
:1000B000BE0FF66E000EF7220900F5501200000385
:1000C00002FFFFFFFFFFFFFFFFFFFFFFFFFFF76ADA
:1000D000DE0FF66E000EF7220900F550120000FF49
:1000E00002FFFFFFFFFFFFFFFFFFFFFFFFFFF76ABA
:1000F000FE0FF66E000EF7220900F5501200080000
:100100000B004000000000000000000000000000A4
:100110000000000000000000000000000000F76A7E
:100120002E0FF66E010EF7220900F550120008009E
:10013000000040000000000000000000000000007F
:100140000000000000000000000000000000F76A4E
:100150005E0FF66E010EF7220900F550120009023B
:100160004300020100803209040000010202010084
:1001700005240010010424020205240600010524C0
:10018000010001070581030B00FA09040100020ABE
:10019000000000070502024000010705820240003E
:1001A0000100F76AB20FF66E010EF7220900F55052
:1001B00012000200F76AC40FF66E010EF722090062
:1001C000F550120012171B20FFFFFFFFF76ADC0F2C
:1001D000F66E010EF7220900F5501200120110010F
:1001E0000200000805240B00000101020001F76A6B
:1001F000FE0FF66E010EF7220900F55012000403FF
:100200000904080343004300530020034300430054
:1002100053002000550053004200200074006F007E
:10022000200055004100520054006492609462A482
:1002300002D06294FCD7629825EF07F0080E020105
:10024000016F020E00019A6F180E9AC003F2E8CFF8
:1002500002F2880E0201006F046B020E076F200E7F
:10026000066F000112000F0153A104D00001E6DF68
:100270000F015391629A00012CEF07F00F015F6BA1
:100280006292000131EF07F0A691A5BFA681A59F5C
:10029000A551100803E2000E016E16D0A6A10BD0E6
:1002A000036AA55104DFFF0802E1000E01D0010E30
:1002B000016E0AD009D0036AA55109DFFF0802E1E7
:1002C000000E01D0010E016E1200036AA451530FFB
:1002D000E96E0F0E0320EA6EEF6AA4C0A5F0D4DF2A
:1002E000015218E0A451080DF350A66BE96E020EFE
:1002F000A625EA6EEF6AA451080DF350A66BA56F10
:10030000040EA527000EA623A5C0E9FF020EA62510
:10031000EA6EEF6A1200010EA36FA351070805E30E
:10032000A3C0A4F0D2DFA32BF8D712009D6B9C6B67
:10033000250E9B6F800E9A6F9AC02CF09BC02DF0FB
:100340002E6A2F6A9A6B9AC030F09A6B9AC031F07D
:10035000080E9A6F9AC032F0766B7591346A336AE0
:10036000746B1F90776B1200296A286A996B9951F8
:1003700001080AE3036A99512A0FE96E000E03206F
:10038000EA6EEF6A992BF3D7D1DF1C6A010E1D6E5E
:100390001B6A12000F015B6B606A5F6B626A5C6BC9
:1003A000536B0001B8DFE0DF160E0F01536F62A63A
:1003B00004D0000127DE0F01FAD79F0E5B6F3D0EC0
:1003C000606E649800013ADF030E236E36EF07F08B
:1003D0006084609864823BEF07F0629C40EF07F016
:1003E0009EC024F01200246812009C6B2850291033
:1003F0002DE09C5107082AE31E5005E0020A09E09F
:10040000010A0DE011D027C003F02650A0DE9D6F39
:100410000BD027C003F02650EADE9D6F05D027C021
:1004200003F02650D3DE9D6F262AD8B4272A285001
:10043000D8B4290628069C519C2B036A200FE96E2C
:10044000020E0320EA6E9DC0EFFFD0D7285029107E
:1004500004E19C51080801E01B6A9CC09EF0C0DFCB
:1004600012009B6B276A266A1E6A02011B51010A51
:10047000000107E0030A0BE0010A0DE0220A23E075
:1004800037D0296A120E286E030E1E6E33D0296AE9
:10049000430E286E2FD0020E1E6E9B6B02011A5166
:1004A00000019B5D09E227C003F02650A0DE26264E
:1004B000000E27229B2BF2D727C003F0265097DE91
:1004C000286E296A17D0036A02011A51000172DEF0
:1004D000266E276A263C02D0275208E027C003F088
:1004E000265035DE286E296A05D002D07CDF11D077
:1004F0007ADF0FD002011F5308E1295203E128508F
:100500001E5D03E2296A1EC228F0010E1B6E000167
:100510006CDF99EF03F09B5304E1040E236EFBDEC6
:10052000B3D0050E236E020E9E6F280E9D6F010E36
:100530009C6F9C510708D8A0A7D09CC0A4F0C5DE32
:100540009F6B036A9C51C3DDFF084FE0040E9F6F51
:10055000D8909C35036AE3DD0900F5CF03F0A06F66
:1005600003C0A1F09C51080DF350A46BA36F010EC2
:10057000A325016E000EA421036E01C0E9FF020E47
:100580000324EA6EA0C0EFFF9C51080DF350A46B4A
:10059000A36F020EA325016E000EA421036E01C0FD
:1005A000E9FF020E0324EA6E9EC0ECFFED529DC0EF
:1005B000EFFFD8909C35036AB2DD0900F5CF03F058
:1005C0009D2703509E23880EA26FA1A101D0A28176
:1005D000A1A301D0A2839C51080DF350A46BE96E36
:1005E000020EA425EA6EA2C0EFFF036A9C515FDDF4
:1005F000FF0834E09F839C51080DF350A46BA36F58
:10060000040EA327000EA423020EA325016E000EE4
:10061000A421036E01C0E9FF020E0324EA6E9EC00E
:10062000ECFFED529DC0EFFFD8909C35036A5FDD73
:100630000900F5CF03F09D2703509E239C51080D20
:10064000F350A46BA36F040EA327000EA423A3C032
:10065000E9FF020EA425EA6E400EEF6E9F510608D8
:1006600002E10E0E9F6F036A9C5121DD010801E03B
:100670009F89036A9C51530FE96E0F0E0320EA6EA7
:100680009FC0EFFF9C2B55D793EF03F00201195148
:10069000000A00010DE0010A14E0020A1FE0060A48
:1006A00029E0030A2EE00E0A2EE0010A32E040D0D3
:1006B0001DC020F20201216B020E00019E6F90DE30
:1006C00038D002011A2D07D0010E1D1600019E6BB5
:1006D00087DE03D00201000186DE2BD002011A2D35
:1006E00006D01D8200019E6B7BDE03D0020100015B
:1006F0007ADE1FD0020E1B6E1AC225F09E6B70DED2
:1007000018D0AFD616D01CC020F2010E9E6F68DE46
:1007100010D002011A51010809E31AC21CF01AC2D2
:100720009BF00001F8D69E6B5BDE0201000101D058
:100730005ADEEDEF04F01CC09BF002011951000AD3
:10074000000105E00A0A0BE0010A26E037D00201A9
:10075000206B216B020E00019E6F42DE30D09B5356
:1007600019E0010E9B5D036A1CDD016E02011C5D38
:10077000D8A002D000010ED0036A1C512A0FE96EE6
:10078000000E0320EA6EEFCF20F2010E00019E6FF3
:1007900027DE01D028DE13D09B530EE0036A02014E
:1007A0001C512A0FE96E000E0320EA6E1AC2EFFFF9
:1007B00000019E6B15DE01D016DE01D014DEEDEFD8
:1007C00004F09C919BBF9C819B9F9CA111D09B514D
:1007D000080DF3509E6B9D6F040E9D27000E9E2307
:1007E0009DC0E9FF020E9E25EA6E880EEF6E09D0CD
:1007F0009B51080DF3509E6BE96E020E9E25EA6E2A
:10080000EF6A036A9B51530F016E0F0E032201C062
:10081000E9FF03C0EAFFEF906EEF04F09C919BBFED
:100820009C819B9F9CA111D09B51080DF3509E6B06
:100830009D6F040E9D27000E9E239DC0E9FF020EB2
:100840009E25EA6E840EEF6E0AD09B51080DF35080
:100850009E6BE96E020E9E25EA6E840EEF6E74EFBB
:1008600004F09C919BBF9C819B9F9CA111D09B51AC
:10087000080DF3509F6B9E6F040E9E27000E9F2362
:100880009EC0E9FF020E9F25EA6EEFCF9DF00AD0D1
:100890009B51080DF3509F6BE96E020E9F25EA6E87
:1008A000EFCF9DF09DAF02D09DB502D0000E01D0DC
:1008B000010E016E7EEF04F01CC2A5F0E5DC0152D2
:1008C00028E002011951010A000105E0020A09E0CD
:1008D000030A0DE01DD01CC29BF073D79E6B80DD18
:1008E00018D01CC29BF09AD79E6B7ADD12D0020101
:1008F000206B216B1CC29BF00001B3D7015204E0B6
:10090000010E0201206F0001020E9E6F69DD01D011
:100910006ADDEDEF04F0FE0E246E120002011C2DC4
:1009200001D002D01C533FE11FC29CF01EC29BF0BD
:100930001951000A00010BE0010A0DE0210A0FE045
:10094000010A12E0030A21E0010A24E02AD0010E84
:10095000776FE1DF27D09BC09EF042DD23D0020EEF
:10096000776F7581D8DF1ED0020EEA6E200EE96E19
:10097000E26A2C0EE16E070E016EE6CFEEFF012E4D
:10098000FCD7070E9E6F2CDD0DD01AC276F09E6B41
:1009900027DD08D01AC234F01BC233F09E6B20DD75
:1009A00001D021DD02010001EDEF04F01B6A02011C
:1009B00018517F0B000A000107E0010A07E0030A53
:1009C00007E0230A07E008D061D607D0B4D605D0E7
:1009D00073D703D0A3D701D006DDCFEF06F09C512B
:1009E000080DF350A26BE96E020EA225EA6EEFCF5E
:1009F0009EF09D51020806E19EAD02D09D6B02D093
:100A0000010E9D6F9D51030813E1840E9E6F9C5152
:100A1000080DF350A26BA16F040EA127000EA223B4
:100A2000A1C0E9FF020EA225EA6E840EEF6E07D088
:100A30009D2D03D0C80E9E6F02D0880E9E6FD89059
:100A40009C35036A8FEC00F00900F5CF03F09F6F2F
:100A500003C0A0F09C51080DF350A26BA16F010ED2
:100A6000A125016E000EA221036E01C0E9FF020E56
:100A70000324EA6E9FC0EFFFA0A101D09E81A0A336
:100A800001D09E839C51080DF350A26BE96E020EBB
:100A9000A225EA6E9EC0EFFF1200036AA951530F10
:100AA000E96E0F0E0320EA6EEF5212E0A951080D15
:100AB000F350AB6BAA6F040EAA27000EAB23AAC09B
:100AC000E9FF020EAB25EA6EEFCFACF0ACAF02D07F
:100AD000000E01D0010E016E1200A4C0A9F0DDDFEE
:100AE00001526EE0A451080DF350AA6BA96F040ED9
:100AF000A927000EAA23010EA925016E000EAA2126
:100B0000036E01C0E9FF020E0324EA6EA5C0EFFFE9
:100B1000A751020817E1A451080DF350AA6BA96F61
:100B2000040EA927000EAA23A9C0E9FF020EAA25D8
:100B3000EA6EEFCFA8F0A8AD02D0A76B02D0010EED
:100B4000A76F13D0A751040810E1A451080DF3506A
:100B5000AA6BE96E020EAA25EA6EEFCFA8F0A8AD47
:100B600003D0010EA76F01D0A76BA72D03D0480EAD
:100B7000A86F02D0080EA86FA451080DF350AA6BFD
:100B8000A96F040EA927000EAA23A9C0E9FF020E2F
:100B9000AA25EA6EA8C0EFFFA451080DF350AA6B76
:100BA000A96F040EA927000EAA23A9C0E9FF020E0F
:100BB000AA25EA6EEF508009EF6E010E016E02D099
:100BC000000E016E12007751010A05E0020A07E0EB
:100BD000010A0AE01BD09E6B03DC776B18D09E6B7A
:100BE000F0EC01F0776B13D0EA6A2C0EE96E020E7E
:100BF000E26E180EE16E070E016EE6CFEEFF012EDB
:100C0000FCD7776B9E6BF0EC01F001D0776B33EF84
:100C100006F09C51080DF3509E6B9D6F010E9D25B3
:100C2000016E000E9E21036E01C0E9FF020E032437
:100C3000EA6EEFCF01F0026A29EF06F01F90020E74
:100C40009C6F9D6FCCDE12001F80216A020E9C6F8C
:100C5000E0D701C020F0205201E1F0DF38EF06F0CC
:100C60009B5302E1B0D704D09B51020801E1ECD7BD
:100C700012009CC05CFF9C5303E0040E236E02D064
:100C8000020E236E49EF06F01C6A1B6A25C09CF019
:100C9000F0D7AEEF06F09CC0A9F0FFDE01523CE0B9
:100CA0009C51080DF350A56BA46F040EA427000EF1
:100CB000A523020EA425016E000EA521036E01C01E
:100CC000E9FF020E0324EA6EECCFA3F0ED52EFCF62
:100CD000A2F0A3C0EAFFA2C0E9FF9EC0E2FF9DC050
:100CE000E1FFA0C002F09FC001F0015202E0022A21
:100CF00002D0025206E0E6CFEEFF012EFCD7022E14
:100D0000FAD79CC0A4F0A0C0A6F09FC0A5F0A1C0D7
:100D1000A7F0E3DE015002D0000E016E1200745302
:100D20000EE0020E9C6F9E6B350E9D6FA06B74C023
:100D30009FF0020EA16FAFDF015201E0746B120051
:100D4000EEDFB3EF06F09B530AE11B2C03D0F5EC6A
:100D500001F004D01B500208D8B496D704D09B51A0
:100D6000020801E1EDD712002230996F99339933CF
:100D70001F0E9917225241E1020100513C0B000164
:100D80009A6F430E0201001700019A5134081EE1C8
:100D900002010451800B01E0046B000107D6649846
:100DA000243C05D09C6B030E9D6F19DE0ED09C6B0E
:100DB000020E9D6F14DE2450FE0807E0A46BA66BA4
:100DC00024C0A5F0040EA76F88DE16D09A5104083F
:100DD00013E19B6B45DF9C6B020E9D6F00DE245080
:100DE000FE080AE0243C01D007D0A46BA66B24C007
:100DF000A5F0010EA76F71DE1AD0225004080EE193
:100E000024689B6BA0DF243C01D007D0A46BA66BA9
:100E100024C0A5F0020EA76F60DE09D022B404D072
:100E200099C09BF01DDF03D099C09BF08CDF4AEF87
:100E300007F0A1942352D8B433D06252D8B430D042
:100E400062A403D060B415EF01F064B229D062AAA5
:100E500003D060BA33EF01F062A203D060B23EEF7C
:100E600001F062A003D060B0CAEF01F062A803D025
:100E700060B8E8EF01F062AC03D060BCEDEF01F0C8
:100E8000986B62A608D060A606D063CF22F002EC71
:100E900000F06AD701D004D09851982B0308F1E2F2
:100EA00030EF00F055534220636F6E6E65637465DA
:100EB000642C2077616974696E6720666F722065A3
:100EC0006E756D61726174696F6E2E2E2E0D0A0A39
:100ED000000055534220646973636F6E6E656374DE
:100EE00065642C2077616974696E6720666F722073
:100EF000636F6E6E656374696F6E2E2E2E0D0A0A17
:100F0000000055534220656E756D657261746564AD
:100F10002062792050432F484F53540D0A0A000095
:100F200055534220756E656E756D657261746564AA
:100F30002062792050432F484F53542C2077616909
:100F400074696E6720666F7220656E756D6572617B
:100F500074696F6E2E2E2E0D0A0A00005365726999
:100F6000616C2070726F6772616D20696E6974695F
:100F700061746564206F6E205553423C2D3E55418F
:100F8000525420434F4D20506F72740D0A0A0000D6
:100F90000D0A4E657720627574746F6E20737461EC
:100FA0007465206265696E672073656E743A20000F
:100FB0004641494C00000D0A0A4343532043444331
:100FC00020285669727475616C205253323332296D
:100FD000204578616D706C650D0A00000D0A504364
:100FE000483A20760000352E3130350048454C4CCB
:100FF0004F2D574F524C442D48454C4C4F2D574F79
:10100000524C442D48454C4C4F2D574F524C442D7B
:1010100048454C4C4F2D574F524C442D48454C4C55
:101020004F2D574F524C442D48454C4C4F2D574F48
:10103000524C442D48454C4C4F2D574F524C442D4B
:1010400048454C4C4F2D574F524C442D444F4E4524
:1010500000000900F5520DE0F6CF85F0F7CF86F0DD
:10106000F5509EA8FED7AD6E85C0F6FF86C0F7FF8F
:10107000F0D712006492646A606A616A9250030950
:10108000926E236A196AF2BE198EF29EB4EC01F0D8
:1010900019BEF28E4DEF08F0EDD74FEF0AF0196A46
:1010A000F2BE198EF29EB4EC01F019BEF28E64927B
:1010B000646A648C00D000D00000649C140E616EE1
:1010C000606A6486010E236E69EF08F064B601D091
:1010D000E6D7232C0BD064BA09D0626A606AA08478
:1010E000C00EF212110E606E020E236E50EF0AF067
:1010F0001C50016E7FEF08F0010E826FF9D701C01E
:1011000083F0846B75B1842B835303E094968B86B4
:1011100002D094968B96845303E094948B8402D0EF
:1011200094948B9476A103D094928B8202D0949263
:101130008B92825307E07A5305E1A40EF66E0E0EF1
:10114000F76E87DF825307E17A5305E0D20EF66E21
:101150000E0EF76E7EDF835307E07B5305E1020E30
:10116000F66E0F0EF76E75DF835307E17B5305E0D4
:10117000200EF66E0F0EF76E6CDF845307E07C5383
:1011800005E15C0EF66E0F0EF76E63DF82C07AF03B
:1011900083C07BF084C07CF051EF0AF0016603D07D
:1011A000026602D007D0022A00C0EEFF012EFCD753
:1011B000022EFAD756EF09F085C08BF084C08AF072
:1011C00087C08DF086C08CF0895303E188510008F8
:1011D00030E28AC0E9FF8BC0EAFFEFCF8EF08DC00E
:1011E00003F08CC0E9FF8DC0EAFFEF508E5D16E082
:1011F0008BC003F08AC0E9FF03C0EAFFEFCF8EF097
:101200008DC003F08CC0E9FF8DC0EAFFEF508E5D0A
:1012100002E2FF0E01D0010E016E0DD08A2BD8B470
:101220008B2B8C2BD8B48D2B8851D8B48907880789
:10123000CBD7000E016E67EF09F0196AF2BE198E66
:10124000F29E010EA96F29DC19BEF28E015203E154
:10125000000E016E21D0A10E0201286F200E296F11
:101260002A6B2B6B2C6B2D6B020E2E6F2F6B84C099
:1012700030F285C031F2196AF2BE198EF29E010E6B
:101280000001A46FA66B0A0EA56F020EA76F25DCE6
:1012900019BEF28E010E016E73EF09F0EA6A820E3A
:1012A000E96E006A026A020E016E78D79286829118
:1012B00080A68281829382B18283856B820E846F45
:1012C000876B7F0E866F896B020E886F75D7015210
:1012D00026E0900EF66E0F0EF76EBBDE83C085F033
:1012E00082C084F0AAD701520DE082C07FF083C093
:1012F00080F04F0E9EA8FED7AD6E4B0E9EA8FED777
:10130000AD6E05D0B00EF66E0F0EF76EA2DE0D0EAE
:101310009EA8FED7AD6E0A0E9EA8FED7AD6E52EF08
:101320000AF09EAAFED7ABCF1AF0AECF01F01AA2F8
:1013300002D0AB98AB8855EF0AF08791A0B48781B3
:10134000A09474513E0802E23E0E746F7451742BE7
:10135000036A350FE96E000E0320EA6E86C0EFFFC8
:1013600087A101D0A084B8EF09F085C086F0E5D749
:10137000196AF2BE198EF29ED2DC19BEF28EDCEF33
:1013800009F03F0ED880745514E1196AF2BE198E27
:10139000F29E020EA96F4DEC05F019BEF28E0152BD
:1013A00007E0196AF2BE198EF29EB9DC19BEF28E00
:1013B000E8D784C085F0D9D712000900F5520CE0B7
:1013C000F6CF82F0F7CF83F0F5CF84F0DADF82C07A
:1013D000F6FF83C0F7FFF1D773EF0AF01FB001D01B
:1013E000FDD72150212A036A330FE96E020E032034
:1013F000EA6EEFCF82F02050215C07E3196AF2BE5B
:10140000198EF29E1BDC19BEF28E82C001F07AEFBB
:101410000AF09EA8FED7AD6E10EF0AF08251F9D700
:101420001200F86AD09E078E1A6AB886E10EAF6E77
:10143000040EB06EA60EAC6E900EAB6E7E6B7D6B26
:10144000000E7E6EC190C192C194C1967F6E6C6A8F
:101450006B6A6D6A786B796B7A6B7B6B7C6B7F6B7D
:10146000806B94968B9694948B9494928B92B60EF8
:10147000F66E0F0EF76EEDDDDC0EF66E0F0EF76EEC
:10148000E8DDE60EF66E0F0EF76EE3DD0D0E9EA89C
:10149000FED7AD6E0A0E9EA8FED7AD6EFDD516D650
:1014A0002BD6FCD69EAA23D03CD701C081F0815117
:1014B0000A0807E10D0E846F64DF0A0E846F61DF96
:1014C00016D081510D0807E10D0E846F5ADF0A0E08
:1014D000846F57DF0CD08151210806E1EC0EF66EC7
:1014E0000F0EF76E6AD703D081C084F04ADF1FA0C9
:1014F0001AD074D701C081F081510A0807E10D0E9E
:10150000826F8CDF0A0E826F89DF0DD081510D084A
:1015100007E10D0E826F82DF0A0E826F7FDF03D03C
:0A15200081C082F07BDFBBD703001F
:020000040030CA
:0E0000002032191E0000890003C003E00340F7
:00000001FF
;PIC18F14K50
;CRC=50CE  CREATED="13-Dec-21 15:48"
FFT



Joined: 07 Jul 2010
Posts: 92

View user's profile Send private message

PostPosted: Tue Dec 14, 2021 3:02 pm     Reply with quote

Thank you. I just tested it on LF chip and it didn't work as before. I will test the code on F chip tomorrow.

Here I'm sending you my hex code for LF chip, fuses are the same like yours.

Could you please (if suitable) test it on your F chip?
It's the same usb serial code generated by your explanations above, just for LF chip.

Thanks.

Code:
:1000000011EF0AF062961200046ED8CF05F0E0CF2F
:1000100006F00001E9CF0CF0EACF07F0E1CF08F0DD
:10002000E2CF09F0D9CF0AF0DACF0BF0F3CF12F01C
:10003000F4CF13F0FACF14F0F5CF15F0F6CF16F099
:10004000F7CF17F000C00EF001C00FF002C010F0A3
:1000500003C011F0A0A430EF00F0A1B419EF07F035
:100060000EC000F00FC001F010C002F011C003F08C
:100070000CC0E9FF07C0EAFF078E08C0E1FF09C016
:10008000E2FF0AC0D9FF0BC0DAFF12C0F3FF13C0B2
:10009000F4FF14C0FAFF15C0F5FF16C0F6FF17C035
:1000A000F7FF045006C0E0FF05C0D8FF1000F76A54
:1000B000BE0FF66E000EF7220900F5501200000385
:1000C00002FFFFFFFFFFFFFFFFFFFFFFFFFFF76ADA
:1000D000DE0FF66E000EF7220900F550120000FF49
:1000E00002FFFFFFFFFFFFFFFFFFFFFFFFFFF76ABA
:1000F000FE0FF66E000EF7220900F5501200080000
:100100000B004000000000000000000000000000A4
:100110000000000000000000000000000000F76A7E
:100120002E0FF66E010EF7220900F550120008009E
:10013000000040000000000000000000000000007F
:100140000000000000000000000000000000F76A4E
:100150005E0FF66E010EF7220900F550120009023B
:100160004300020100803209040000010202010084
:1001700005240010010424020205240600010524C0
:10018000010001070581030B00FA09040100020ABE
:10019000000000070502024000010705820240003E
:1001A0000100F76AB20FF66E010EF7220900F55052
:1001B00012000200F76AC40FF66E010EF722090062
:1001C000F550120012171B20FFFFFFFFF76ADC0F2C
:1001D000F66E010EF7220900F5501200120110010F
:1001E0000200000805240B00000101020001F76A6B
:1001F000FE0FF66E010EF7220900F55012000403FF
:100200000904080343004300530020034300430054
:1002100053002000550053004200200074006F007E
:10022000200055004100520054006492609462A482
:1002300002D06294FCD7629825EF07F0080E020105
:10024000016F020E00019A6F180E9AC003F2E8CFF8
:1002500002F2880E0201006F046B020E076F200E7F
:10026000066F000112000F0153A104D00001E6DF68
:100270000F015391629A00012CEF07F00F015F6BA1
:100280006292000131EF07F0A691A5BFA681A59F5C
:10029000A551100803E2000E016E16D0A6A10BD0E6
:1002A000036AA55104DFFF0802E1000E01D0010E30
:1002B000016E0AD009D0036AA55109DFFF0802E1E7
:1002C000000E01D0010E016E1200036AA451530FFB
:1002D000E96E0F0E0320EA6EEF6AA4C0A5F0D4DF2A
:1002E000015218E0A451080DF350A66BE96E020EFE
:1002F000A625EA6EEF6AA451080DF350A66BA56F10
:10030000040EA527000EA623A5C0E9FF020EA62510
:10031000EA6EEF6A1200010EA36FA351070805E30E
:10032000A3C0A4F0D2DFA32BF8D712009D6B9C6B67
:10033000250E9B6F800E9A6F9AC02CF09BC02DF0FB
:100340002E6A2F6A9A6B9AC030F09A6B9AC031F07D
:10035000080E9A6F9AC032F0766B7591346A336AE0
:10036000746B1F90776B1200296A286A996B9951F8
:1003700001080AE3036A99512A0FE96E000E03206F
:10038000EA6EEF6A992BF3D7D1DF1C6A010E1D6E5E
:100390001B6A12000F015B6B606A5F6B626A5C6BC9
:1003A000536B0001B8DFE0DF160E0F01536F62A63A
:1003B00004D0000127DE0F01FAD79F0E5B6F3D0EC0
:1003C000606E649800013ADF030E236E36EF07F08B
:1003D0006084609864823BEF07F0629C40EF07F016
:1003E0009EC024F01200246812009C6B2850291033
:1003F0002DE09C5107082AE31E5005E0020A09E09F
:10040000010A0DE011D027C003F02650A0DE9D6F39
:100410000BD027C003F02650EADE9D6F05D027C021
:1004200003F02650D3DE9D6F262AD8B4272A285001
:10043000D8B4290628069C519C2B036A200FE96E2C
:10044000020E0320EA6E9DC0EFFFD0D7285029107E
:1004500004E19C51080801E01B6A9CC09EF0C0DFCB
:1004600012009B6B276A266A1E6A02011B51010A51
:10047000000107E0030A0BE0010A0DE0220A23E075
:1004800037D0296A120E286E030E1E6E33D0296AE9
:10049000430E286E2FD0020E1E6E9B6B02011A5166
:1004A00000019B5D09E227C003F02650A0DE26264E
:1004B000000E27229B2BF2D727C003F0265097DE91
:1004C000286E296A17D0036A02011A51000172DEF0
:1004D000266E276A263C02D0275208E027C003F088
:1004E000265035DE286E296A05D002D07CDF11D077
:1004F0007ADF0FD002011F5308E1295203E128508F
:100500001E5D03E2296A1EC228F0010E1B6E000167
:100510006CDF99EF03F09B5304E1040E236EFBDEC6
:10052000B3D0050E236E020E9E6F280E9D6F010E36
:100530009C6F9C510708D8A0A7D09CC0A4F0C5DE32
:100540009F6B036A9C51C3DDFF084FE0040E9F6F51
:10055000D8909C35036AE3DD0900F5CF03F0A06F66
:1005600003C0A1F09C51080DF350A46BA36F010EC2
:10057000A325016E000EA421036E01C0E9FF020E47
:100580000324EA6EA0C0EFFF9C51080DF350A46B4A
:10059000A36F020EA325016E000EA421036E01C0FD
:1005A000E9FF020E0324EA6E9EC0ECFFED529DC0EF
:1005B000EFFFD8909C35036AB2DD0900F5CF03F058
:1005C0009D2703509E23880EA26FA1A101D0A28176
:1005D000A1A301D0A2839C51080DF350A46BE96E36
:1005E000020EA425EA6EA2C0EFFF036A9C515FDDF4
:1005F000FF0834E09F839C51080DF350A46BA36F58
:10060000040EA327000EA423020EA325016E000EE4
:10061000A421036E01C0E9FF020E0324EA6E9EC00E
:10062000ECFFED529DC0EFFFD8909C35036A5FDD73
:100630000900F5CF03F09D2703509E239C51080D20
:10064000F350A46BA36F040EA327000EA423A3C032
:10065000E9FF020EA425EA6E400EEF6E9F510608D8
:1006600002E10E0E9F6F036A9C5121DD010801E03B
:100670009F89036A9C51530FE96E0F0E0320EA6EA7
:100680009FC0EFFF9C2B55D793EF03F00201195148
:10069000000A00010DE0010A14E0020A1FE0060A48
:1006A00029E0030A2EE00E0A2EE0010A32E040D0D3
:1006B0001DC020F20201216B020E00019E6F90DE30
:1006C00038D002011A2D07D0010E1D1600019E6BB5
:1006D00087DE03D00201000186DE2BD002011A2D35
:1006E00006D01D8200019E6B7BDE03D0020100015B
:1006F0007ADE1FD0020E1B6E1AC225F09E6B70DED2
:1007000018D0AFD616D01CC020F2010E9E6F68DE46
:1007100010D002011A51010809E31AC21CF01AC2D2
:100720009BF00001F8D69E6B5BDE0201000101D058
:100730005ADEEDEF04F01CC09BF002011951000AD3
:10074000000105E00A0A0BE0010A26E037D00201A9
:10075000206B216B020E00019E6F42DE30D09B5356
:1007600019E0010E9B5D036A1CDD016E02011C5D38
:10077000D8A002D000010ED0036A1C512A0FE96EE6
:10078000000E0320EA6EEFCF20F2010E00019E6FF3
:1007900027DE01D028DE13D09B530EE0036A02014E
:1007A0001C512A0FE96E000E0320EA6E1AC2EFFFF9
:1007B00000019E6B15DE01D016DE01D014DEEDEFD8
:1007C00004F09C919BBF9C819B9F9CA111D09B514D
:1007D000080DF3509E6B9D6F040E9D27000E9E2307
:1007E0009DC0E9FF020E9E25EA6E880EEF6E09D0CD
:1007F0009B51080DF3509E6BE96E020E9E25EA6E2A
:10080000EF6A036A9B51530F016E0F0E032201C062
:10081000E9FF03C0EAFFEF906EEF04F09C919BBFED
:100820009C819B9F9CA111D09B51080DF3509E6B06
:100830009D6F040E9D27000E9E239DC0E9FF020EB2
:100840009E25EA6E840EEF6E0AD09B51080DF35080
:100850009E6BE96E020E9E25EA6E840EEF6E74EFBB
:1008600004F09C919BBF9C819B9F9CA111D09B51AC
:10087000080DF3509F6B9E6F040E9E27000E9F2362
:100880009EC0E9FF020E9F25EA6EEFCF9DF00AD0D1
:100890009B51080DF3509F6BE96E020E9F25EA6E87
:1008A000EFCF9DF09DAF02D09DB502D0000E01D0DC
:1008B000010E016E7EEF04F01CC2A5F0E5DC0152D2
:1008C00028E002011951010A000105E0020A09E0CD
:1008D000030A0DE01DD01CC29BF073D79E6B80DD18
:1008E00018D01CC29BF09AD79E6B7ADD12D0020101
:1008F000206B216B1CC29BF00001B3D7015204E0B6
:10090000010E0201206F0001020E9E6F69DD01D011
:100910006ADDEDEF04F0FE0E246E120002011C2DC4
:1009200001D002D01C533FE11FC29CF01EC29BF0BD
:100930001951000A00010BE0010A0DE0210A0FE045
:10094000010A12E0030A21E0010A24E02AD0010E84
:10095000776FE1DF27D09BC09EF042DD23D0020EEF
:10096000776F7581D8DF1ED0020EEA6E200EE96E19
:10097000E26A2C0EE16E070E016EE6CFEEFF012E4D
:10098000FCD7070E9E6F2CDD0DD01AC276F09E6B41
:1009900027DD08D01AC234F01BC233F09E6B20DD75
:1009A00001D021DD02010001EDEF04F01B6A02011C
:1009B00018517F0B000A000107E0010A07E0030A53
:1009C00007E0230A07E008D061D607D0B4D605D0E7
:1009D00073D703D0A3D701D006DDCFEF06F09C512B
:1009E000080DF350A26BE96E020EA225EA6EEFCF5E
:1009F0009EF09D51020806E19EAD02D09D6B02D093
:100A0000010E9D6F9D51030813E1840E9E6F9C5152
:100A1000080DF350A26BA16F040EA127000EA223B4
:100A2000A1C0E9FF020EA225EA6E840EEF6E07D088
:100A30009D2D03D0C80E9E6F02D0880E9E6FD89059
:100A40009C35036A8FEC00F00900F5CF03F09F6F2F
:100A500003C0A0F09C51080DF350A26BA16F010ED2
:100A6000A125016E000EA221036E01C0E9FF020E56
:100A70000324EA6E9FC0EFFFA0A101D09E81A0A336
:100A800001D09E839C51080DF350A26BE96E020EBB
:100A9000A225EA6E9EC0EFFF1200036AA951530F10
:100AA000E96E0F0E0320EA6EEF5212E0A951080D15
:100AB000F350AB6BAA6F040EAA27000EAB23AAC09B
:100AC000E9FF020EAB25EA6EEFCFACF0ACAF02D07F
:100AD000000E01D0010E016E1200A4C0A9F0DDDFEE
:100AE00001526EE0A451080DF350AA6BA96F040ED9
:100AF000A927000EAA23010EA925016E000EAA2126
:100B0000036E01C0E9FF020E0324EA6EA5C0EFFFE9
:100B1000A751020817E1A451080DF350AA6BA96F61
:100B2000040EA927000EAA23A9C0E9FF020EAA25D8
:100B3000EA6EEFCFA8F0A8AD02D0A76B02D0010EED
:100B4000A76F13D0A751040810E1A451080DF3506A
:100B5000AA6BE96E020EAA25EA6EEFCFA8F0A8AD47
:100B600003D0010EA76F01D0A76BA72D03D0480EAD
:100B7000A86F02D0080EA86FA451080DF350AA6BFD
:100B8000A96F040EA927000EAA23A9C0E9FF020E2F
:100B9000AA25EA6EA8C0EFFFA451080DF350AA6B76
:100BA000A96F040EA927000EAA23A9C0E9FF020E0F
:100BB000AA25EA6EEF508009EF6E010E016E02D099
:100BC000000E016E12007751010A05E0020A07E0EB
:100BD000010A0AE01BD09E6B03DC776B18D09E6B7A
:100BE000F0EC01F0776B13D0EA6A2C0EE96E020E7E
:100BF000E26E180EE16E070E016EE6CFEEFF012EDB
:100C0000FCD7776B9E6BF0EC01F001D0776B33EF84
:100C100006F09C51080DF3509E6B9D6F010E9D25B3
:100C2000016E000E9E21036E01C0E9FF020E032437
:100C3000EA6EEFCF01F0026A29EF06F01F90020E74
:100C40009C6F9D6FCCDE12001F80216A020E9C6F8C
:100C5000E0D701C020F0205201E1F0DF38EF06F0CC
:100C60009B5302E1B0D704D09B51020801E1ECD7BD
:100C700012009CC05CFF9C5303E0040E236E02D064
:100C8000020E236E49EF06F01C6A1B6A25C09CF019
:100C9000F0D7AEEF06F09CC0A9F0FFDE01523CE0B9
:100CA0009C51080DF350A56BA46F040EA427000EF1
:100CB000A523020EA425016E000EA521036E01C01E
:100CC000E9FF020E0324EA6EECCFA3F0ED52EFCF62
:100CD000A2F0A3C0EAFFA2C0E9FF9EC0E2FF9DC050
:100CE000E1FFA0C002F09FC001F0015202E0022A21
:100CF00002D0025206E0E6CFEEFF012EFCD7022E14
:100D0000FAD79CC0A4F0A0C0A6F09FC0A5F0A1C0D7
:100D1000A7F0E3DE015002D0000E016E1200745302
:100D20000EE0020E9C6F9E6B350E9D6FA06B74C023
:100D30009FF0020EA16FAFDF015201E0746B120051
:100D4000EEDFB3EF06F09B530AE11B2C03D0F5EC6A
:100D500001F004D01B500208D8B496D704D09B51A0
:100D6000020801E1EDD712002230996F99339933CF
:100D70001F0E9917225241E1020100513C0B000164
:100D80009A6F430E0201001700019A5134081EE1C8
:100D900002010451800B01E0046B000107D6649846
:100DA000243C05D09C6B030E9D6F19DE0ED09C6B0E
:100DB000020E9D6F14DE2450FE0807E0A46BA66BA4
:100DC00024C0A5F0040EA76F88DE16D09A5104083F
:100DD00013E19B6B45DF9C6B020E9D6F00DE245080
:100DE000FE080AE0243C01D007D0A46BA66B24C007
:100DF000A5F0010EA76F71DE1AD0225004080EE193
:100E000024689B6BA0DF243C01D007D0A46BA66BA9
:100E100024C0A5F0020EA76F60DE09D022B404D072
:100E200099C09BF01DDF03D099C09BF08CDF4AEF87
:100E300007F0A1942352D8B433D06252D8B430D042
:100E400062A403D060B415EF01F064B229D062AAA5
:100E500003D060BA33EF01F062A203D060B23EEF7C
:100E600001F062A003D060B0CAEF01F062A803D025
:100E700060B8E8EF01F062AC03D060BCEDEF01F0C8
:100E8000986B62A608D060A606D063CF22F002EC71
:100E900000F06AD701D004D09851982B0308F1E2F2
:100EA00030EF00F055534220636F6E6E65637465DA
:100EB000642C2077616974696E6720666F722065A3
:100EC0006E756D61726174696F6E2E2E2E0D0A0A39
:100ED000000055534220646973636F6E6E656374DE
:100EE00065642C2077616974696E6720666F722073
:100EF000636F6E6E656374696F6E2E2E2E0D0A0A17
:100F0000000055534220656E756D657261746564AD
:100F10002062792050432F484F53540D0A0A000095
:100F200055534220756E656E756D657261746564AA
:100F30002062792050432F484F53542C2077616909
:100F400074696E6720666F7220656E756D6572617B
:100F500074696F6E2E2E2E0D0A0A00005365726999
:100F6000616C2070726F6772616D20696E6974695F
:100F700061746564206F6E205553423C2D3E55418F
:100F8000525420434F4D20506F72740D0A0A0000D6
:100F90000D0A4E657720627574746F6E20737461EC
:100FA0007465206265696E672073656E743A20000F
:100FB0004641494C00000D0A0A4343532043444331
:100FC00020285669727475616C205253323332296D
:100FD000204578616D706C650D0A00000D0A504364
:100FE000483A20760000352E3130340048454C4CCC
:100FF0004F2D574F524C442D48454C4C4F2D574F79
:10100000524C442D48454C4C4F2D574F524C442D7B
:1010100048454C4C4F2D574F524C442D48454C4C55
:101020004F2D574F524C442D48454C4C4F2D574F48
:10103000524C442D48454C4C4F2D574F524C442D4B
:1010400048454C4C4F2D574F524C442D444F4E4524
:1010500000000900F5520DE0F6CF85F0F7CF86F0DD
:10106000F5509EA8FED7AD6E85C0F6FF86C0F7FF8F
:10107000F0D712006492646A606A616A9250030950
:10108000926E236A196AF2BE198EF29EB4EC01F0D8
:1010900019BEF28E4DEF08F0EDD74FEF0AF0196A46
:1010A000F2BE198EF29EB4EC01F019BEF28E64927B
:1010B000646A648C00D000D00000649C140E616EE1
:1010C000606A6486010E236E69EF08F064B601D091
:1010D000E6D7232C0BD064BA09D0626A606AA08478
:1010E000C00EF212110E606E020E236E50EF0AF067
:1010F0001C50016E7FEF08F0010E826FF9D701C01E
:1011000083F0846B75B1842B835303E094968B86B4
:1011100002D094968B96845303E094948B8402D0EF
:1011200094948B9476A103D094928B8202D0949263
:101130008B92825307E07A5305E1A40EF66E0E0EF1
:10114000F76E87DF825307E17A5305E0D20EF66E21
:101150000E0EF76E7EDF835307E07B5305E1020E30
:10116000F66E0F0EF76E75DF835307E17B5305E0D4
:10117000200EF66E0F0EF76E6CDF845307E07C5383
:1011800005E15C0EF66E0F0EF76E63DF82C07AF03B
:1011900083C07BF084C07CF051EF0AF0016603D07D
:1011A000026602D007D0022A00C0EEFF012EFCD753
:1011B000022EFAD756EF09F085C08BF084C08AF072
:1011C00087C08DF086C08CF0895303E188510008F8
:1011D00030E28AC0E9FF8BC0EAFFEFCF8EF08DC00E
:1011E00003F08CC0E9FF8DC0EAFFEF508E5D16E082
:1011F0008BC003F08AC0E9FF03C0EAFFEFCF8EF097
:101200008DC003F08CC0E9FF8DC0EAFFEF508E5D0A
:1012100002E2FF0E01D0010E016E0DD08A2BD8B470
:101220008B2B8C2BD8B48D2B8851D8B48907880789
:10123000CBD7000E016E67EF09F0196AF2BE198E66
:10124000F29E010EA96F29DC19BEF28E015203E154
:10125000000E016E21D0A10E0201286F200E296F11
:101260002A6B2B6B2C6B2D6B020E2E6F2F6B84C099
:1012700030F285C031F2196AF2BE198EF29E010E6B
:101280000001A46FA66B0A0EA56F020EA76F25DCE6
:1012900019BEF28E010E016E73EF09F0EA6A820E3A
:1012A000E96E006A026A020E016E78D79286829118
:1012B00080A68281829382B18283856B820E846F45
:1012C000876B7F0E866F896B020E886F75D7015210
:1012D00026E0900EF66E0F0EF76EBBDE83C085F033
:1012E00082C084F0AAD701520DE082C07FF083C093
:1012F00080F04F0E9EA8FED7AD6E4B0E9EA8FED777
:10130000AD6E05D0B00EF66E0F0EF76EA2DE0D0EAE
:101310009EA8FED7AD6E0A0E9EA8FED7AD6E52EF08
:101320000AF09EAAFED7ABCF1AF0AECF01F01AA2F8
:1013300002D0AB98AB8855EF0AF08791A0B48781B3
:10134000A09474513E0802E23E0E746F7451742BE7
:10135000036A350FE96E000E0320EA6E86C0EFFFC8
:1013600087A101D0A084B8EF09F085C086F0E5D749
:10137000196AF2BE198EF29ED2DC19BEF28EDCEF33
:1013800009F03F0ED880745514E1196AF2BE198E27
:10139000F29E020EA96F4DEC05F019BEF28E0152BD
:1013A00007E0196AF2BE198EF29EB9DC19BEF28E00
:1013B000E8D784C085F0D9D712000900F5520CE0B7
:1013C000F6CF82F0F7CF83F0F5CF84F0DADF82C07A
:1013D000F6FF83C0F7FFF1D773EF0AF01FB001D01B
:1013E000FDD72150212A036A330FE96E020E032034
:1013F000EA6EEFCF82F02050215C07E3196AF2BE5B
:10140000198EF29E1BDC19BEF28E82C001F07AEFBB
:101410000AF09EA8FED7AD6E10EF0AF08251F9D700
:101420001200F86AD09E078E1A6AB886E10EAF6E77
:10143000040EB06EA60EAC6E900EAB6E7E6B7D6B26
:10144000000E7E6EC190C192C194C1967F6E6C6A8F
:101450006B6A6D6A786B796B7A6B7B6B7C6B7F6B7D
:10146000806B94968B9694948B9494928B92B60EF8
:10147000F66E0F0EF76EEDDDDC0EF66E0F0EF76EEC
:10148000E8DDE60EF66E0F0EF76EE3DD0D0E9EA89C
:10149000FED7AD6E0A0E9EA8FED7AD6EFDD516D650
:1014A0002BD6FCD69EAA23D03CD701C081F0815117
:1014B0000A0807E10D0E846F64DF0A0E846F61DF96
:1014C00016D081510D0807E10D0E846F5ADF0A0E08
:1014D000846F57DF0CD08151210806E1EC0EF66EC7
:1014E0000F0EF76E6AD703D081C084F04ADF1FA0C9
:1014F0001AD074D701C081F081510A0807E10D0E9E
:10150000826F8CDF0A0E826F89DF0DD081510D084A
:1015100007E10D0E826F82DF0A0E826F7FDF03D03C
:0A15200081C082F07BDFBBD703001F
:020000040030CA
:0E0000002032191E0000890003C003E00340F7
:00000001FF
;PIC18LF14K50
;CRC=4D24  CREATED="12-Ara-21 21:49"
PCM programmer



Joined: 06 Sep 2003
Posts: 21615

View user's profile Send private message

PostPosted: Tue Dec 14, 2021 4:33 pm     Reply with quote

Yes, your hex file works on my F part. It enumerates.
FFT



Joined: 07 Jul 2010
Posts: 92

View user's profile Send private message

PostPosted: Wed Dec 15, 2021 2:47 pm     Reply with quote

I tested it with an F chip and it works.

Then I replaced the LF chip with a new one, I programmed it carefully at 3V using pickit3 over mplab once again and It showed a sign of life that enumeration started at Windows 7 but could not find driver.
Later I tested it on linux and it came as ttyACM0 usb2serial device.
Finally I installed the driver in CCS folder and it looks OK.

(I think I burned the other LF chips' USB somehow)

When testing the firmware;
- Docklight cannot see it's com port.
- TeraTerm sees it but when I press '!' it didn't send any HELLO messages as in the code.
- Hercules sees it but the same with the '!' key and echo character.

What am I missing?
PCM programmer



Joined: 06 Sep 2003
Posts: 21615

View user's profile Send private message

PostPosted: Wed Dec 15, 2021 3:59 pm     Reply with quote

Quote:

The VBUS pin is connected to 3.3V and I have few 10uF
capacitors
on the 3.3V line. So the 1uF is not alone there.
Do you think the 1uF is the problem?

There is no VBUS pin on the PIC. You must mean the VUSB pin.

You're supposed to have a .22uf to .47uf ceramic cap on the VUSB pin.

What are the 10uF caps ? Are they electrolytic. That's not good enough.

You should also have a .1uF ceramic cap on the Vdd pin of the PIC.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group