Hi Guido, We always try to write programs to work with various PICs. I took the include block for 18f46j50 from 18f46j50_blink_hs_usb.jal, and placed it into 18f67j50_fat32_usb_msd_sd_card.jal. The program compiles without any errors or warnings.
Errors :0 Warnings :0 Code :34280/65528 Data:1626/3776 Hardware Stack : 0/100 Software Stack :1728 You should have no issue, as long as you have the right pins available (USB and SPI pins). The serial pins are always useful for debugging as well. Check the sample for the pins it needs. There is a schematic at http://www.justanotherlanguage.org/content/jallib/tutorials/tutorial_sd_card for the SD card part, however the schematic is for a 5V circuit. I suggest you use 3.3v to reduce components. First try a regular sd card sample. The schematic for USB will be in your datasheet. Test a more simple sample, such as USB serial, to ensure USB is working. I do have a schematic for a full 18f67j50 mp3 player, which includes the parts you need. The schematic needs work. The 3.3v sd card schematic is in there. I uploaded it here for you: http://www.justanotherlanguage.org/MP3Player On Wednesday, June 1, 2016 at 9:39:19 AM UTC-4, Guido Jones wrote: > > Was thrilled to see the the new(ish) 18F67J50 SD MSD examples that combine > SD mass storage functionality and SD read/write capabilities! Datalogging > here we come! :) > > But, I was wondering if this code is portable to the 18F46J50 family? > (mostly since there's a 28-pin 18F26J50 (DIP), and they seem to be very > similar, putting aside Flash space...) > > > Also, is there a schematic available that shows the connections used in > the "18f67j50_fat32_usb_msd_sd_card.jal" example? > > > > Thanks! > -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/jallib. For more options, visit https://groups.google.com/d/optout.
