30F4011_lcdpro

所属分类:DSP编程
开发工具:C/C++
文件大小:143KB
下载次数:98
上传日期:2007-09-05 23:12:38
上 传 者lingminjie
说明:  基于micochip的dsPIC30F,使用内部QEI模块测量电机速度和位置,由mplab软件来编译,并通过,可用于调节直流电机的转速
(Based on micochip the dsPIC30F, the use of internal QEI module measuring motor speed and position, by the MPLAB software to compile, and can be used to adjust the speed of DC motor)

文件列表:
30F4011_lcdpro\A_to_D_Converter.c (4905, 2005-06-06)
30F4011_lcdpro\CVS\Entries (793, 2005-06-06)
30F4011_lcdpro\CVS\Repository (19, 2005-06-06)
30F4011_lcdpro\CVS\Root (19, 2005-06-06)
30F4011_lcdpro\CVS (0, 2007-06-14)
30F4011_lcdpro\Delay.s (3205, 2005-06-06)
30F4011_lcdpro\Demo.mcp (1300, 2006-08-05)
30F4011_lcdpro\Demo.mcs (416, 2007-06-21)
30F4011_lcdpro\Demo.mcw (116736, 2007-06-21)
30F4011_lcdpro\Demo.mptags (143706, 2006-08-04)
30F4011_lcdpro\Demo.tagsrc (460, 2006-08-04)
30F4011_lcdpro\DisplayRoutines.c (5373, 2005-06-06)
30F4011_lcdpro\Hyperterminal_RS232_dsPICDEM2.ht (103, 2005-06-06)
30F4011_lcdpro\INTx_IO_pins.c (4519, 2006-08-03)
30F4011_lcdpro\Main.c (10758, 2006-08-04)
30F4011_lcdpro\object_o_files\A_to_D_Converter.o (39746, 2006-08-04)
30F4011_lcdpro\object_o_files\CVS\Entries (468, 2005-06-06)
30F4011_lcdpro\object_o_files\CVS\Repository (34, 2005-06-06)
30F4011_lcdpro\object_o_files\CVS\Root (19, 2005-06-06)
30F4011_lcdpro\object_o_files\CVS (0, 2007-06-14)
30F4011_lcdpro\object_o_files\Delay.o (836, 2006-08-04)
30F4011_lcdpro\object_o_files\DisplayRoutines.o (40806, 2006-08-04)
30F4011_lcdpro\object_o_files\INTx_IO_pins.o (40068, 2006-08-04)
30F4011_lcdpro\object_o_files\Main.o (45344, 2006-08-04)
30F4011_lcdpro\object_o_files\SPI_for_LCD.o (40462, 2006-08-04)
30F4011_lcdpro\object_o_files\Timers.o (40169, 2006-08-04)
30F4011_lcdpro\object_o_files\traps.o (40137, 2006-08-04)
30F4011_lcdpro\object_o_files\UART.o (40094, 2006-08-04)
30F4011_lcdpro\object_o_files (0, 2007-06-14)
30F4011_lcdpro\output_hex_map_files\CVS\Entries (218, 2005-06-06)
30F4011_lcdpro\output_hex_map_files\CVS\Repository (40, 2005-06-06)
30F4011_lcdpro\output_hex_map_files\CVS\Root (19, 2005-06-06)
30F4011_lcdpro\output_hex_map_files\CVS (0, 2007-06-14)
30F4011_lcdpro\output_hex_map_files\Demo.cof (350867, 2006-08-04)
30F4011_lcdpro\output_hex_map_files\Demo.hex (17189, 2006-08-04)
30F4011_lcdpro\output_hex_map_files\Demo.map (96721, 2006-08-04)
30F4011_lcdpro\output_hex_map_files\dsPIC30F4011_dsPICDEM2_Demo_06062005.hex (8797, 2005-06-06)
30F4011_lcdpro\output_hex_map_files (0, 2007-06-14)
30F4011_lcdpro\SPI_for_LCD.c (4417, 2005-06-06)
... ...

dsPICDEM2 30F4011 Demonstration Project Readme File --------------------------------------------------------------------- Set up the dsPICDEM2 Development Board for 30F4011 device: -------------------------------------------------------------- 1. Install a 30F4011 device in the socket labelled U2A1 2. Ensure jumpers JP1 and JP2 are installed. 3. In group of switches labelled S2, turn ON only the switch labelled M ALL. 4. Switches S3 and S4 should be turned OFF (all positions OFF). 5. Install jumpers to set the header H1 to the M40 position. This connects the SCK1 and SDO1 pins on the dsPIC to the LCD Controller(U3) on the board. 6. Ensure that any jumpers on header H2 are removed 7. Ensure that any jumpers on header H3 are removed 8. Install jumpers to set the header H4 to the M ALL position. This connects the RS232 drivers on-board to the U1ATX & U1ARX pins on the dsPIC. 9. Ensure that any jumpers on header H5 are removed 10. Install a jumper to set header H6 to the M ALL posiion. This connects switch S5 to the external interrupt pin INT0 on the dsPIC. 11. Install a jumper to set header H7 to the M ALL posiion. This connects switch S6 to the external interrupt pin INT1 on the dsPIC. 12. Install jumpers to set the headers H10 and H13 to the M ALL position. The temperature sensor(U5) and the potentiometer(R15) on the board are now connected to the Analog Input pins, AN2 and AN3 on the dsPIC. 13. Ensure any jumpers on header H11 are removed 14. Install jumpers to set the header H12 to the M positions. This connects LEDs D3 and D4 on the board to Digital I/O pins RB0 & RB1 on the dsPIC. Connect dsPICDEM 2 Development Board to MPLAB ICD 2 and your PC: --------------------------------------------------------------------- 1. Connect the MPLAB ICD2 to your PC using the USB cable. 2. Connect RJ11 cable from MPLAB ICD 2 to ICD header (J1) on dsPICDEM 2 board. 3. Connect the Male end of an RS232 cable to the DB9 connector (J2) on the dsPICDEM 2 board. Connect other end of cable to the COM port on your PC. 4. Apply power to the board using a 9v power supply at J4 Running the accompanying demonstration software on the dsPIC30F4011 --------------------------------------------------------------------------- Following these steps in the sequence noted: 1. From MPLAB IDE, open Demo.mcw workspace file within MPLAB IDE by selecting: File>>Open Workspace The Demo workspace should open and ICD2 should be able to detect the 30F4011 device installed on the dsPICDEM2 board. 4. Build the Project within MPLAB IDE by selecting the option: Project>>Build All 5. Program the sample 30F4011 device from MPLAB IDE by selecting: Programmer>>Program 6. Release the device from Reset from within MPLAB IDE by selecting the option: Programmer>>Release from Reset 7. In group of switches labelled S2 on the dsPICDEM2 development board, turn OFF the switch labelled M ALL. 8. The demonstration program is now running. 9. On your PC/Workstation, open the file "Hyperterminal_RS232_dsPICDEM2.ht" provided in this folder with HyperTerminal. You should see a scrolling display on the HyperTerminal window that indicates the room temperature and the voltage supplied by the potentiometer to the dsPIC.

近期下载者

相关文件


收藏者