tag:blogger.com,1999:blog-8299212346186005351.post3434351711395160294..comments2023-12-28T20:24:29.342+01:00Comments on jallib: PIC 18f14k50 USB Interface Board: Part 1Sebastien Lelonghttp://www.blogger.com/profile/00317258446230687333noreply@blogger.comBlogger27125tag:blogger.com,1999:blog-8299212346186005351.post-68133513955220224412012-10-18T06:26:02.403+02:002012-10-18T06:26:02.403+02:00The PCB drawing (18F14K50_usb_io_board_PCB.pdf)I h...The PCB drawing (18F14K50_usb_io_board_PCB.pdf)I have downloaded from your website is apparently corrupted. Please assist. Thank you.Anonymoushttps://www.blogger.com/profile/09029145693004118149noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-25443385856729456162011-05-02T18:10:09.429+02:002011-05-02T18:10:09.429+02:00Hi,
Per the schematic, is RC2 the "official&...Hi,<br /><br />Per the schematic, is RC2 the "official" program pin for SW2, if one were to use the Microchip bootloader mentioned in you article?<br /><br />Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-59409798417665923132011-02-14T19:12:37.176+01:002011-02-14T19:12:37.176+01:00You can find them in this archive:
https://sites.g...You can find them in this archive:<br />https://sites.google.com/site/funlw65/tutorials/freejalduino-with-jallib/jal.tar.gz?attredirects=0&d=1Vasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-58195496197862396012011-02-11T22:35:03.887+01:002011-02-11T22:35:03.887+01:00Hello,
Where can i get the files pdfsusb.zip and M...Hello,<br />Where can i get the files pdfsusb.zip and MCHPUSB Custom Driver.zip? and some other files, since <br />they are no more found on google groups.hubert3https://www.blogger.com/profile/02013418067906298932noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-70366194616168586482010-05-15T19:43:19.945+02:002010-05-15T19:43:19.945+02:00Thank you Albert, my knowledge is still low in USB...Thank you Albert, my knowledge is still low in USB area.<br /><br />Yes, I would like to see/have an USB manual. These days, the main attraction for a compiler/language are USB libraries so it will be very helpful. I tested many languages with USB support and read a lot of related topics on their forums. The main problem with many commercial languages is that they don't have a relocatable USB code. I mean, if you have an USB Serial application written from 0x00 flash address, it works ok but don't when you try to use it with an USB bootloader. I can enumerate at least three commercial languages and also the free SDCC compiler having problems with some USB CDC stack.<br /><br />So, your libraries are great and I try to spread the news as best I can.<br /><br />Vasi(funlw65)Vasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-20165449887514088502010-05-14T23:36:51.116+02:002010-05-14T23:36:51.116+02:00Hi Vasi,
I think you gave very good support and an...Hi Vasi,<br />I think you gave very good support and answers, maybe I should be even add more detailed explanations in the future so more people can work with it. It might be a good idea to grab all USB related blogs and comments and write a new manual/tutorial<br />AlbertAlberthttps://www.blogger.com/profile/07474528874165692590noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-90063613253682699102010-05-06T17:56:07.391+02:002010-05-06T17:56:07.391+02:00For readers, I answered to T_Rex in another articl...For readers, I answered to T_Rex in another article.Vasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-60563619658295118032010-05-06T17:51:04.154+02:002010-05-06T17:51:04.154+02:00You can compile it from sources. The botloader wit...You can compile it from sources. The botloader with autostart function have sources included. See it in SVN from http://code.google.com/p/jallib.<br /><br />Look for examples for 18F4550 microcontroller. The source have definitions also for your microcontroller.Vasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-4174380985765244692010-05-06T17:07:20.895+02:002010-05-06T17:07:20.895+02:00Does a Bootloader for the 18F14k50 exist with the ...Does a Bootloader for the 18F14k50 exist with the Autostart function? My project will not have any buttons, so I will not be able to put it into 'program mode' this way.Joshnoreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-61078396130908263472010-01-17T19:32:39.700+01:002010-01-17T19:32:39.700+01:00That's great Vasi.I'm begining to get the ...That's great Vasi.I'm begining to get the idea ! That brings the data into the Jal terminal. <br />Now here's the next question: How do I get the data into a C# application I'm writing with Visual C# Express ? (Let's assume it's a rudimentary data logger application).T_Rexhttps://www.blogger.com/profile/11953663645069453374noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-4212644490762443832010-01-15T23:20:13.177+01:002010-01-15T23:20:13.177+01:00Look here:
http://sites.google.com/site/funlw65/t...Look here:<br /><br /><a href="http://sites.google.com/site/funlw65/tutorials/freejalduino-with-jallib/usb-cdc---using-keyboard-to-switch-a-led-on-off" rel="nofollow">http://sites.google.com/site/funlw65/tutorials/freejalduino-with-jallib/usb-cdc---using-keyboard-to-switch-a-led-on-off</a><br /><br />to see how to use Serial Communication Terminal Toll from Jaledit to see your data.Vasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-30512784902302809672010-01-15T22:48:35.932+01:002010-01-15T22:48:35.932+01:00It involve using ADC library and USB Serial librar...It involve using ADC library and USB Serial library...<br />Look at ADC examples and at USB Serial examples and put them together. So... you are using this board... this mean you will have Independent analog pins...<br /><br />-- start example:<br />include 18f14k50 -- target PICmicro<br />pragma target clock 48_000_000 -- oscillator frequency<br />--fuses:<br />--No fuses here, you are using a bootloader<br />--use following parameters to your compiler:<br />-- -loader18 -no-fuse<br /><br />-- include libraries<br />enable_digital_io()<br />include usb_serial<br />include format<br /><br />-- now configure ADC<br />const bit ADC_HIGH_RESOLUTION = true<br />const byte ADC_NVREF = 0<br />include adc<br />adc_init()<br />pin_C4_direction = output<br />pin_C6_direction = output<br />pin_C2_direction = input<br />set_analog_pin(5) -- is connected to a potmeter on the board<br /><br />var word measure<br />usb_serial_init()<br /><br />forever loop<br />usb_serial_flush()<br />measure = adc_read(5)<br />format_word_dec(usb_serial_data, measure, 4, 0)<br />usb_serial_data = 13<br />usb_serial_data = 10<br />end loop<br />-- end example<br /><br />Not tested of course, I don't have that board...Vasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-24254694383003258632010-01-15T17:05:21.085+01:002010-01-15T17:05:21.085+01:00I'd like to use one of the analog inputs to se...I'd like to use one of the analog inputs to send analog data to a host PC. How do I accomplish that ?T_Rexhttps://www.blogger.com/profile/11953663645069453374noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-63594522502668233812010-01-15T07:45:58.232+01:002010-01-15T07:45:58.232+01:00At reset time, I think the bootloader will test if...At reset time, I think the bootloader will test if "Program" button is hold down. If not, the bootloader will launch the user application (if any). If not, it will enter in boot mode and will wait for PDFSUSB application to send your program. After that, you need to press (for short time) only Reset button to start your application.<br /><br />My board don't have a Program button, and is using another bootloader, with autostart function, written by Albert, so I can be wrong about the functionality of this bootloader.Vasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-27628748577725063522010-01-15T07:40:21.810+01:002010-01-15T07:40:21.810+01:00The bootloader will start using "Program"...The bootloader will start using "Program" switch. In this blog Albert is explaining how you will upload your application using bootloader:<br /><br />http://jallib.blogspot.com/2009/07/pic-18f14k50-usb-interface-board-part-2.html<br /><br />"The code is compiled with jalv2 using the -loader18 -no-fuse. After compilation, you can reset the PIC 18f14k50 USB Interface Board and holding (same time - my note) down the program button. Now the PDFSUSB application can be used to download the HEX file, after download reset the board. If everything went OK, it should recognize the USB-CDC device and ask for drivers (Windows only), select the driver (which can be downloaded from"Vasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-78500431393567163452010-01-13T14:58:53.071+01:002010-01-13T14:58:53.071+01:00Thanks Vasi, I understand. I'm ordering a Pick...Thanks Vasi, I understand. I'm ordering a Pickit 2 programmer on eBay and some of the parts for this project from Mouser Electronics. I'm still mystified by the "program" pushbutton.T_Rexhttps://www.blogger.com/profile/11953663645069453374noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-46069795581630929572010-01-11T19:26:23.369+01:002010-01-11T19:26:23.369+01:00Every PIC is an empty box, no software inside, no ...Every PIC is an empty box, no software inside, no bootloader. Microchip don't sell them with boootloader inside. You need an external programmer.<br /><br />VasiVasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-91776971560048335012010-01-11T18:21:07.556+01:002010-01-11T18:21:07.556+01:00I tought the PIC18F14K50 could be programmed direc...I tought the PIC18F14K50 could be programmed directly via its own USB port. Is an external programmer still needed ?T_Rexhttps://www.blogger.com/profile/11953663645069453374noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-10507747177172695582010-01-03T04:47:22.010+01:002010-01-03T04:47:22.010+01:00Would this board work?
"Low Pin count USB de...Would this board work?<br /><br />"Low Pin count USB development kit" made by Microchip.<br /><br />It is about $40.Joshnoreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-35671607547895740932009-11-11T09:16:50.731+01:002009-11-11T09:16:50.731+01:00Thanx for replying Albert.
Unfortunitly i counted ...Thanx for replying Albert.<br />Unfortunitly i counted about 20 programmers online, all for different types of PIC's and more. Most of these have other pinnames than the 18F14K50.<br />Than the software, most can use a wide range of hardware but what to choose?<br /><br />Can you be more specific, lead me to a link or something?<br />Really want to create the hardware myself.<br /><br />Thanx, RickScumarihttps://www.blogger.com/profile/14303285831451751992noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-71286398898881969852009-11-10T23:49:44.551+01:002009-11-10T23:49:44.551+01:00Hi Rick,
Yes you can use an standard ISCP PIC prog...Hi Rick,<br />Yes you can use an standard ISCP PIC programmer<br />AlbertAlberthttps://www.blogger.com/profile/07474528874165692590noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-14095253293158830612009-11-10T17:13:21.352+01:002009-11-10T17:13:21.352+01:00Hi,
Can you tell me what programmer to use to con...Hi,<br /><br />Can you tell me what programmer to use to connect to the board? Also, is WinPic an option as program software?<br /><br />Thanx, RickAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-5916117506568909482009-08-08T00:59:10.337+02:002009-08-08T00:59:10.337+02:00I've thought about this issue as well, there a...I've thought about this issue as well, there are some solution, eacht with its own drawbacks.<br />The main issue is the code size that's left, the current bootloader has to fit within the 2048 bytes, there are some bytes left, but it is pretty tight.<br /><br />Possible solutions are:<br />1) At startup, check if bootloader software is active (needs some special bootloader SW on the host pc, but I've the source code so it is easy to change), when it times out, jump to the user app; possible issues are:<br />When starting trough: how to make sure that all registers and HW are in the reset state<br /><br />2) Reserve one byte in EEPROM (or maybe even better, use the ID locations, not all PICs have EEPROM), which indicates if the bootloader needs to be started or jump directly to the user code. However this requires that the user app always should have the ability write this EEPROM /ID location and forse a reset. This can be accomplished if we have a JALuino "runtime kernel" that always should be linked in with the user app, <br /><br />I think option 2 is the most feasible, the only drawback is that if the user downloads the wrong hex file (i.e. without the JALuino kernel) you're not been able to download another kernel, so maybe an "emergency" boot switch can be added, but this will add some resitrictions on this pin usage, the pin must be held high when switch is not pressed), or add some checks on the HOST PC bootloader SW to vailidate that the Jaluino kernel is part of the hex fileAlberthttps://www.blogger.com/profile/07474528874165692590noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-55628749386628064502009-08-07T16:21:42.559+02:002009-08-07T16:21:42.559+02:00It is possible to adapt your boot loader for 18F25...It is possible to adapt your boot loader for 18F2550 but without the need of having a start button?Vasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.comtag:blogger.com,1999:blog-8299212346186005351.post-28345196692602785752009-07-17T11:44:00.063+02:002009-07-17T11:44:00.063+02:00I would like this to be continued.. I want to lear...I would like this to be continued.. I want to learn "USB"Vasile Guta-Ciucurhttps://www.blogger.com/profile/09085940933193435093noreply@blogger.com