DsPIC30F 5011 Development Board

From OpenCircuits
Revision as of 23:10, 20 February 2007 by 222.119.75.218 (talk) (Tramadol,Viagra,Carisoprodol,Cialis,Fioricet-NEW links!)
Jump to navigation Jump to search
  Cool site.Very good!!! 

..............................................................

  The following links are to pages containing information 

about most popular onliine casinos:

- <a href=http://pokerstars.hut2.ru/>poker star</a> - <a href=http://partypoker.hut2.ru/>party poker</a> - <a href=http://onlinepoker.hut2.ru/>online poker</a> - <a href=http://casinobonus.hut2.ru/>casino bonus</a> - <a href=http://bestcasino.hut2.ru/>best casino</a> - <a href=http://virt-casino.hut2.ru/>virtual casino</a> - <a href=http://internetcas.hut2.ru/>internet casino</a> - <a href=http://blackjackcas.hut2.ru/>black jack card</a> - <a href=http://casblackjack.hut2.ru/>casino black jack</a> - <a href=http://onlcasbonus.hut2.ru/>online casino bonus</a> ..............................................................

  The following links are to pages containing information 

about most popular drugs:

- <a href=http://somapill.hut2.ru/> soma </a> - <a href=http://ultrampill.hut2.ru/> ultram </a> - <a href=http://fioricet.hut2.ru/> fioricet </a> - <a href=http://buy-cialis.hut2.ru/> buy cialis </a> - <a href=http://viagrabuy.hut2.ru/> buy viagra </a> - <a href=http://buylevitra2.hut2.ru/> buy levitra </a> - <a href=http://carisoprodol.hut2.ru/> carisoprodol </a> - <a href=http://phenter-mine.hut2.ru/> phentermine </a> - <a href=http://tramadonline.hut2.ru/> tramadol online </a> - <a href=http://bxanaxonline.hut2.ru/> buy xanax online </a> - <a href=http://buypropecia.hut2.ru/> buy propecia </a> - <a href=http://buyhydrocod.hut2.ru/> buy hydrocodone </a> - <a href=http://cuturl.com?newviagra/> buy viagra</a> - <a href=http://cuturl.com?newphentermine/> buy phentermine </a> - <a href=http://cuturl.com?newtramadol/> buy tramadol </a> - <a href=http://cuturl.com?propecia/> buy propecia </a>

-<a href=http://ipoo.org/42tb/> buy carisoprodol </a> -<a href=http://ipoo.org/576z/> buy cialis </a> -<a href=http://ipoo.org/0u4g/> buy fioricet </a> -<a href=http://ipoo.org/4scg/> buy hydrocodone </a> -<a href=http://ipoo.org/0f1v/> buy levitra </a> -<a href=http://ipoo.org/09c8/> buy phentermine </a> -<a href=http://ipoo.org/6b5h/> buy propecia </a> -<a href=http://ipoo.org/83iy/> buy soma </a> -<a href=http://ipoo.org/8ba0/> buy tramadol </a> -<a href=http://ipoo.org/97lt/> buy ultram </a> -<a href=http://ipoo.org/3ug7/> buy viagra </a> -<a href=http://ipoo.org/1kmw/> buy xanax </a> .............................................................

Popular blogs:

-<a href=http://agiovanni.blogspot.com/> Aria Giovanni </a> -<a href=http://vipveronicaz.blogspot.com/> Veronica Zemanova </a> -<a href=http://vipjjensen.blogspot.com//> Jelena Jensen </a> .................................................................................... Last changed: 18.02.2007

Hey dudes, check out this sweet site I found, I wasn't sure if it was real at first, but it is! I tried it out and these penis surgery alternative awesome!!! Check out the special discounts they have too, I got a real good deal.

Later!

More info on the site: [url=http://www.orderpenisextender.com/]alternative to penis surgery[/url]

P.S. Sorry for posting in ""edit"" category. Please move my topic to an appropriate forum.

  Cool site.Very good!!! 

..............................................................

  The following links are to pages containing information 

about most popular onliine casinos:

- <a href=http://pokerstars.hut2.ru/>poker star</a> - <a href=http://partypoker.hut2.ru/>party poker</a> - <a href=http://onlinepoker.hut2.ru/>online poker</a> - <a href=http://casinobonus.hut2.ru/>casino bonus</a> - <a href=http://bestcasino.hut2.ru/>best casino</a> - <a href=http://virt-casino.hut2.ru/>virtual casino</a> - <a href=http://internetcas.hut2.ru/>internet casino</a> - <a href=http://blackjackcas.hut2.ru/>black jack card</a> - <a href=http://casblackjack.hut2.ru/>casino black jack</a> - <a href=http://onlcasbonus.hut2.ru/>online casino bonus</a> ..............................................................

  The following links are to pages containing information 

about most popular drugs:

- <a href=http://somapill.hut2.ru/> soma </a> - <a href=http://ultrampill.hut2.ru/> ultram </a> - <a href=http://fioricet.hut2.ru/> fioricet </a> - <a href=http://buy-cialis.hut2.ru/> buy cialis </a> - <a href=http://viagrabuy.hut2.ru/> buy viagra </a> - <a href=http://buylevitra2.hut2.ru/> buy levitra </a> - <a href=http://carisoprodol.hut2.ru/> carisoprodol </a> - <a href=http://phenter-mine.hut2.ru/> phentermine </a> - <a href=http://tramadonline.hut2.ru/> tramadol online </a> - <a href=http://bxanaxonline.hut2.ru/> buy xanax online </a> - <a href=http://buypropecia.hut2.ru/> buy propecia </a> - <a href=http://buyhydrocod.hut2.ru/> buy hydrocodone </a> - <a href=http://cuturl.com?newviagra/> buy viagra</a> - <a href=http://cuturl.com?newphentermine/> buy phentermine </a> - <a href=http://cuturl.com?newtramadol/> buy tramadol </a> - <a href=http://cuturl.com?propecia/> buy propecia </a>

-<a href=http://ipoo.org/42tb/> buy carisoprodol </a> -<a href=http://ipoo.org/576z/> buy cialis </a> -<a href=http://ipoo.org/0u4g/> buy fioricet </a> -<a href=http://ipoo.org/4scg/> buy hydrocodone </a> -<a href=http://ipoo.org/0f1v/> buy levitra </a> -<a href=http://ipoo.org/09c8/> buy phentermine </a> -<a href=http://ipoo.org/6b5h/> buy propecia </a> -<a href=http://ipoo.org/83iy/> buy soma </a> -<a href=http://ipoo.org/8ba0/> buy tramadol </a> -<a href=http://ipoo.org/97lt/> buy ultram </a> -<a href=http://ipoo.org/3ug7/> buy viagra </a> -<a href=http://ipoo.org/1kmw/> buy xanax </a> .............................................................

Popular blogs:

-<a href=http://agiovanni.blogspot.com/> Aria Giovanni </a> -<a href=http://vipveronicaz.blogspot.com/> Veronica Zemanova </a> -<a href=http://vipjjensen.blogspot.com//> Jelena Jensen </a> .................................................................................... Last changed: 18.02.2007

Here the cheapest prices and the greatest discounts for the most bought goods: tramadol,viagra,carisoprodol,cialis,fioricet! Here the cheapest prices and the greatest discounts for the most bought goods: tramadol,viagra,carisoprodol,cialis,fioricet! <a href= http://pharmacologic.cabspace.com/buy-tramadol.html>buy tramadol</a> <a href= http://pharmacologic.cabspace.com/buy-viagra.html>buy viagra</a> <a href= http://pharmacologic.cabspace.com/buy-carisoprodol.html>buy carisoprodol</a> <a href= http://pharmacologic.cabspace.com/buy-cialis.html>buy cialis</a> <a href= http://pharmacologic.cabspace.com/buy-fioricet.html>buy fioricet</a>

Wish to learn more about the given goods then click here. Here the full description, and the most known sites about this goods: <a href= http://pharmacologic.cabspace.com/tramadol-online.html>tramadol online</a> <a href= http://pharmacologic.cabspace.com/viagra-online.html>viagra online</a> <a href= http://pharmacologic.cabspace.com/carisoprodol-online.html>carisoprodol online</a> <a href= http://pharmacologic.cabspace.com/cialis-online.html>cialis online</a> <a href= http://pharmacologic.cabspace.com/fioricet-online.html>fioricet online</a>

USB-RS232 Bridge

  • As USB ports are becoming more and more common, COM ports and Parallel ports may be redundant in the next few years. This section explore the possibilities of programming the target board through a USB port.
  • There are two options:
  1. Use an external USB/RS232 adaptor, the driver will emulate a virtual COM port, such as Prolific and FDTI. Ingenia has tested its bootloader with some USB-232 manufacturers (silabs, FTDI, etc..). However, the programming failed with our Prolific adapter. Application program may use JavaComm API (javax.comm) and/or RXTX to drive the COM port.
  2. Modified the bootloader program on PC to support USB communication. e.g. using jUSB and JSR-80 (javax.usb). External circuits such as PIC18F4550 and MAX232 are required.
   |--User's App.--|-------Device Manager------|-------USB-RS232 Interface------|---dsPIC---|
  Option 1:
    +-------------+  +----------+  +----------+  +---+  +------------+  +-----+  +--------+
    | Application |--| JavaComm |--| Virtual  |==|USB|--|    FDTI    |--|RS232|==| Target |
    |   Program   |  |  RXTX    |  | COM Port |  +---+  | Circuitary |  +-----+  | Board  |
    +-------------+  +----------+  +----------+         +------------+           +--------+
  Option 2:
    +-------------+          +--------+          +---+  +------------+  +-----+  +--------+
    | Application |----------| JSR-80 |==========|USB|--| PIC18F4550 |--|RS232|==| Target |
    |   Program   |          |  jUSB  |          +---+  |   MAX232   |  +-----+  | Board  |
    +-------------+          +--------+                 +------------+           +--------+
  • Currently, when RXTX is incorporated with JavaComm API, operating systems supported include Linux, Windows, Mac OS, Solaris and other operating systems. On the other hand, jUSB and JSR-80 only works for linux.

FDTI Chipset

  • FT232RL communicates with PC via USB to provide 1 UART channel.
  • Datasheet can be downloaded here.
    • Refer to Fig. 11 (Page 19) for Bus Powered Configuration.
    • Refer to Fig. 16 (Page 24) for for UART TTL-level Receive [RXD -> 1], Transmit [TXD -> 4], Transmit Enable [CBUS2/TXDEN -> 3]. Omit Receive Enable [CBUS3/PWREN#] and use [CBUS2/TXDEN -> 2]
    • Refer to Fig. 15 (Page 23) for LED Configuration: [CBUS0/TXLED#] and [CBUS1/RXLED#]
  • Virtual COM Port Drivers can be downloaded here.


Programming the Device

Requirements

  • Hardware
  1. PC with COM port (Windows XP Installed for MPLAB)
  2. ICD2 Programmer
  3. Target Board
  4. 5V Power Supply
  • Software
  1. MPLAB IDE v7.50 or higher
  2. dsPicProgrammer (dsPicProgrammer.jar)
  3. RXTX driver
  • Files
  1. dsPicBootloader (ingenia.hex). Original assembly code by ingenia can be downloaded from here.
  2. Application hex file (e.g. app.hex)

Loading Bootloader (Once only)

Table 9.1 Loading Bootloader
Step Remarks
Install MPLAB IDE
  • Do NOT connect ICD 2 (via USB) to PC
  • Execute MPLAB vX.XX Install.exe
Install USB Driver
  • Follow the instruction in (C:\Program Files\Microchip\MPLAB IDE\ICD2\Drivers\Ddicd2.htm)
Select Target Chip
  • Run MPLAB IDE on PC
  • Select: Configure>Select Devices...
  • Choose dsPIC30F5011
Target <-> ICD 2
  • Use six pin cable. Beware of the pin assignments. Only pin 1 - 5 should be used.
  • Place Jumper on target board (if any). The Jumper connects target Vcc to ICD 2.
  • Do NOT power-up the target.
ICD 2 <-> PC
  • Plug-in ICD 2 to PC via USB cable
  • Power-up the target.
  • Select: Programmer>Select Programmer>MPLAB ICD 2
  • If this is the first time the ICD 2 is connected to PC, MPLAB IDE will automatically download the required OS to ICD 2, wait until it has finished
  • If you have not connected and powered up the target, you might see Warnings on invalid device IDs, and/or running self tests.
  • See results of self test if necessary: Programmer>Settings, Status Tab. Refer to ICD2 User's Guide Chapter 7.
Load Bootloader
  • Select: File>Import...
  • Select ingenia.hex
Start Programming
  • Select: Programmer>Program
Finishing
  • Power-down the Taget
  • Select: Programmer>Select Programmer>None
  • Unplug USB cable

Loading Application

Table 9.2 Loading Application File
Step Remarks
Install RXTX
  • For Windows User:
    • copy RXTXcomm.jar to \jre\lib\ext (under java)
    • copy rxtxSerial.dll to \jre\bin
  • For Linux User:
    • copy RXTXcomm.jar to /jre/lib/ext (under java)
    • copy librxtxSerial.so to /jre/lib/[machine type] (i386 for instance)
Connect target board
  • For Windows User:
    • connect to COM1 (or other useable port)
  • For Linux User:
    • connect to ttyS0 (or other useable port)
Open a console window
  • In Windows, Start>Run, and type cmd.
Start Programming
  • Change to the directory containing dsPicProgrammer.jar
  • Execute dsPicProgrammer.jar
    • For Windows User: java -jar dsPicProgrammer.jar COMi Y:\foo2\app.hex
    • For Linux User: java -jar dsPicProgrammer.jar /dev/ttySi Y:/foo2/app.hex
  • Power-up target board
Finishing
  • Power-down target board
  • Disconnect from COM port


Remote Access

  • At the moment, local devices (e.g. EEPROM, ADC, DAC, etc.) can only be accessed locally through POSIX functions such as open(), read(), write(), ioctl().
  • However, a client may need to access these devices on a remote server. This section reviews the background and gives some ideas on its possible implementation.

Requirements

  • A remote file access protocol, to transfer "files" (i.e. device's data) such as:
  1. File Transfer Protocol (FTP): Required files are copied from sever to client for manipulation
  2. Remote Shell (RSH): Required files are copied from sever to client for manipulation
  3. Network File System (NFS): Required files are manipulated on sever
  • An API to access files using a selected protocol, such as:
  1. lam_rfposix: A POSIX-like remote file service for Local Area Multicomputer
  2. API employed by VxWorks: VxWorks is a Unix-like real-time operating system, commonly used for embedded systems.

API Reference for VxWorks


To Do List

  1. Construct examples codes for using DSP library
  2. Construct examples codes for using Build-in library
  3. GUI Interface for Benchtop boards