caramoan tour package

caramoan tour package

Author Topic: PIC and AVR DIY development boards  (Read 3954 times)

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes

Philippine Electronics Forum

PIC and AVR DIY development boards
« on: May 31, 2009, 10:00:04 PM »

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: PIC and AVR DIY development boards
« Reply #1 on: May 31, 2009, 10:06:38 PM »
Pogi point for you kuya!!!

mwah! ;)
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Philippine Electronics Forum

Re: PIC and AVR DIY development boards
« Reply #1 on: May 31, 2009, 10:06:38 PM »

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: PIC and AVR DIY development boards
« Reply #2 on: May 31, 2009, 10:34:52 PM »
salamat...
sa blog ko din ipopost yung mga projects at mga reviews ng mga tools na meron ako...
i-tatarget ko one post per week...

Philippine Electronics Forum

Re: PIC and AVR DIY development boards
« Reply #2 on: May 31, 2009, 10:34:52 PM »

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: PIC and AVR DIY development boards
« Reply #3 on: May 31, 2009, 10:45:46 PM »
salamat...
sa blog ko din ipopost yung mga projects at mga reviews ng mga tools na meron ako...
i-tatarget ko one post per week...

may mga USB PIC kasi ako dito... di ko pa nasisimulan aralin yan. nwei, thanks.:)
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Philippine Electronics Forum

Re: PIC and AVR DIY development boards
« Reply #3 on: May 31, 2009, 10:45:46 PM »

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: PIC and AVR DIY development boards
« Reply #4 on: June 02, 2009, 07:58:30 PM »
Ako naman puro demo pa lang nagagawa  ;D
Lahat na ata ng demo sa PICDEM FS USB nagawa ko... pinakagusto ko yung sa mouse... kusang umiikot yung pointer... ang sarap gamitin para mang-asar ng ibang computer user.

Hirap humanap ng oras

Philippine Electronics Forum

Re: PIC and AVR DIY development boards
« Reply #4 on: June 02, 2009, 07:58:30 PM »

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: PIC and AVR DIY development boards
« Reply #5 on: June 06, 2009, 08:48:03 PM »
papano ba gumamit ng PIC FS USB?

halimbawa, gusto mo gumawa ng blinking LED, kahit isang pin lang. Papano ba?

ginawa ko din kasi yung ganyang kay kuya, pero naguguluhan ako ng mga files... heheh ;D

nalagyan ko na ng bootloader, at na detect na ng PC ko. pero sunod nun, di ko na alam... heheh ;D


help naman... kahit yung pinakasimpleng blinking led lamang.

salamat. :)
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: PIC and AVR DIY development boards
« Reply #6 on: June 06, 2009, 08:57:50 PM »
eto nga pala yung version ko... pero pareho ding schematic. :)



mine is a PIC18F4450
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1881
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: PIC and AVR DIY development boards
« Reply #7 on: June 06, 2009, 09:06:47 PM »
In the PICDEM FS USB, there is button you press while pressing the reset button or powering up. AFAIK by default the button is connected to RB4. The PIC will enter the bootloader. This can be detected by the Windows PICDEM Demo program. From the demo program you can download the hex file to the PICDEM.

It is recommended to use the PIC USB software framework. You only have to modify a few files to suit your application.
"Set your mind free!"

Offline paranz

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4525
  • Pogi/Ganda Points: 177
  • Gender: Male
  • 1/4W resistor specialist
    • RapidSignal Electronics
Re: PIC and AVR DIY development boards
« Reply #8 on: June 06, 2009, 09:30:20 PM »
eto nga pala yung version ko... pero pareho ding schematic. :)



mine is a PIC18F4450

astig na board! ganada point to you sis  ;)



It is recommended to use the PIC USB software framework. You only have to modify a few files to suit your application.


agree madali lang talaga if using the framework, assuming you know what to modify. Kaya suggest ko lang to read also the usb appnote sa microchip
PIC16 Programming Tutorial using MPLAB and Hi-Tech C
www.rapidsignalph.com/tutorials/pic16-tutorials

Arduino & gizDuino Tutorials
www.rapidsignalph.com/tutorials/arduino-tutorials

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: PIC and AVR DIY development boards
« Reply #9 on: June 06, 2009, 09:30:52 PM »
do ko masyadong kabisado kung pwede yung bootloader sa 18f4450. Sa pagkakalam ko, dalawa yung bootloader, may isang HID tapos yung isa MCHPFSUSB. Magkaiba sila ng user interface para sa loading ng files eh. yung gamit ko is yung default na bootloader ng PICDEM FS USB.

eto yung loader:


sabi sa loader: I-hold daw yung S2 tapos i-reset para makapasok sa bootloading mode. Pagkareset, pwede nang i-release ung S2. Tapos, may drop down menu sa Select PICDEM FS USB Board. Select yung board.
Kung reset lang yung ginawa, pwede lang sya magconnect sa demo mode

eto yung demo mode:



kapag nasa demo mode, pwede mo nang icontrol yung led sa board by toggling LED D4

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: PIC and AVR DIY development boards
« Reply #10 on: June 06, 2009, 09:34:36 PM »
Thank you sir...

BTW, I got that chip from the sampling program of circuitcellar... sayang naman. dapat gimitin at pagtutunan. I made a simple board based on kuya's post. on good thing about kuya's post is that, it is based from the PIC FS USB demo board.

yes sir, i have already tried that...
I guess the switch on the left side is the switch you are referring. Ang ginawa ko, hold-press ko po yun, then I press the reset switch. It was detected...

I am actually confused of the required files from PIC USB framework... nakakalito po...
basta ang naiintindihan ko lang, yung user.c and user.h lamang daw ang babaguhin ko.
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: PIC and AVR DIY development boards
« Reply #11 on: June 06, 2009, 09:36:22 PM »
astig na board! ganada point to you sis  ;)


agree madali lang talaga if using the framework, assuming you know what to modify. Kaya suggest ko lang to read also the usb appnote sa microchip

thank you sister....

yan talga ang problem ko... di ko maintindihan kung papano ko gagamitin yung mga files... i can't even find them! heheh ;D

humihingi lang ako actually ng konting guidance... heheh ;D
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: PIC and AVR DIY development boards
« Reply #12 on: June 06, 2009, 09:37:25 PM »
^kuya, nakarating na ako sa part na yan...

PIC18F4450 ay kapareho lang ng 18F4550. mas konti lang yung space.
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline paranz

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4525
  • Pogi/Ganda Points: 177
  • Gender: Male
  • 1/4W resistor specialist
    • RapidSignal Electronics
Re: PIC and AVR DIY development boards
« Reply #13 on: June 06, 2009, 09:41:10 PM »
sis marce, ganito gawin mo to test your first sample codes like "blinker" and usb communication.

1. download the usb framework sample code
2. open the CDC demo (and compile/build to check if ok ba ang project settings like compiler, etc.)
3. Open user.c and check the code to familiarize before modifying
4. There are blank functions to serve as sample exercises in user.c, like

Code: [Select]

void Exercise_03(void){
    /*
     * Write code in this function that reads data from USB and
     * toggles LED D4 when the data read equals ASCII character '1' (0x31)
     *
     * Useful functions:
     *  byte getsUSBUSART(char *buffer, byte len)   See cdc.c for details
     *  mLED_4_Toggle();
     *
     * Use input_buffer[] to store data read from USB.
     */
}


Modify the code completing the exercises code. There are about 5 sample exercises. If you don't know the answer, no worries check the folder

Quote
C:\MCHPFSUSB\fw\Cdc\user\solutions

for the answer. If you already know C, madali na lang yan.

5. Download to your board to test code, or simply use proteus  ;)
6. Enjoy!
PIC16 Programming Tutorial using MPLAB and Hi-Tech C
www.rapidsignalph.com/tutorials/pic16-tutorials

Arduino & gizDuino Tutorials
www.rapidsignalph.com/tutorials/arduino-tutorials

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: PIC and AVR DIY development boards
« Reply #14 on: June 06, 2009, 09:46:13 PM »
eto ung mga files ng driver, bootloader, saka demo tool na ginamit ko
http://depositfiles.com/files/r9jd18hw2
http://rapidshare.com/files/241480912/pic_fs_usb_bootloader_hex__demo_tool__and_driver.rar

dami kasing files kaya, nilagay ko na lang dito yung hex, driver, saka tool para sa mga gustong gumawa.

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: PIC and AVR DIY development boards
« Reply #15 on: June 06, 2009, 09:49:37 PM »
I am actually confused of the required files from PIC USB framework... nakakalito po...
basta ang naiintindihan ko lang, yung user.c and user.h lamang daw ang babaguhin ko.
Ako rin nalito, nung dinownload ko yung latest version ng framework.

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: PIC and AVR DIY development boards
« Reply #16 on: June 06, 2009, 09:52:32 PM »
sis marce, ganito gawin mo to test your first sample codes like "blinker" and usb communication.

1. download the usb framework sample code
2. open the CDC demo (and compile/build to check if ok ba ang project settings like compiler, etc.)
3. Open user.c and check the code to familiarize before modifying
4. There are blank functions to serve as sample exercises in user.c, like

Code: [Select]

void Exercise_03(void){
    /*
     * Write code in this function that reads data from USB and
     * toggles LED D4 when the data read equals ASCII character '1' (0x31)
     *
     * Useful functions:
     *  byte getsUSBUSART(char *buffer, byte len)   See cdc.c for details
     *  mLED_4_Toggle();
     *
     * Use input_buffer[] to store data read from USB.
     */
}


Modify the code completing the exercises code. There are about 5 sample exercises. If you don't know the answer, no worries check the folder

for the answer. If you already know C, madali na lang yan.

5. Download to your board to test code, or simply use proteus  ;)
6. Enjoy!

itatry ko din to... mukhang meron na kaming tutor ni marce dito ah.

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6016
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: PIC and AVR DIY development boards
« Reply #17 on: June 06, 2009, 09:54:51 PM »
alam ko na... tama ka kuya!

lahat ng mga tutorials sa net, ay iba pa ang structure ng mga folders...

I am using MCHPFSUSB v2.2... eto na ang folder structure nya..



sige... pagtuunanko na muna ng pansin to...

KUYA, try ko yan mamaya kapag di ko to nakuha. heheh ;D
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline ATE

  • Size C Battery
  • *****
  • Posts: 225
  • Pogi/Ganda Points: 12
  • -.-
    • Volts and Bytes
Re: PIC and AVR DIY development boards
« Reply #18 on: June 06, 2009, 09:59:15 PM »
alam ko na... tama ka kuya!

lahat ng mga tutorials sa net, ay iba pa ang structure ng mga folders...

I am using MCHPFSUSB v2.2... eto na ang folder structure nya..



sige... pagtuunanko na muna ng pansin to...

KUYA, try ko yan mamaya kapag di ko to nakuha. heheh ;D

tinry ko yung v2.2, lahat ata ng bootloader dun ginamit ko pero, ayaw madetect... so ginamit ko v1.2, kasi madaling hanapin yung hex, driver, saka tool.. pero sa mga latest version, daming demo na pwedeng pag-aralan...

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1881
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: PIC and AVR DIY development boards
« Reply #19 on: June 06, 2009, 10:06:48 PM »
I think the PIC18F4450 should work. The only difference is the size of the program memory. You can change the linker script file to "rm18f4550.lkr" to define areas in memory to instruct the linker how to put program and data,

Assuming you are using USB framework 1.2 because I am familiar with that and not with version 2 and up:

Aside from the user.c and user.h, you can change io.cfg to redefine I/O locations to suit your hardware.

You can also modify "usbdsc.c" to change the VID/PID so that Windows will differentiate your device from the PICDEM. I would recommend to use the same VID (Microchip's 0x4D8) and just change to product ID. You have to patch the driver's inf file to reflect the changes. The descriptor string is likewise found in the "usbdsc.c".

I took a glance at framework version 2 and I think it is a cleaner framework.


 
"Set your mind free!"

Philippine Electronics Forum

Re: PIC and AVR DIY development boards
« Reply #19 on: June 06, 2009, 10:06:48 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com