使用PMLAB SIM時
|
||||
---|---|---|---|---|
新會員
|
請問先進:
如何在MPLAB SIM中,模擬A/D轉換輸入的訊號 。 謝謝 ㄌ
發表於: 2004/9/27 15:15
|
|||
|
Re: 使用PMLAB SIM時
|
||||
---|---|---|---|---|
新會員
|
謝謝先進!
我有去mplab HELP看,而且有找到下列資料: Creating a Synchronous Stimulus File To create a Synchronous Stimulus file: 1. Click the File Stimulus tab of the Simulator Stimulus dialog (Debugger>Stimulus). 2. Click Add under "Input Files". Enter stim1 for "File Name" and click OK in the Open dialog. The file name should appear in the file list box, i.e., C:\SimProj\ stim1.ssti. 3. Click on the file name to select the file. Click Edit under "Input Files". This will disable some "Input Files" buttons and enable the "Edit Controls" buttons. 4. Click Add Row under "Edit Controls". A row will appear for entering data. 5. Set up the row for file injection into a register as follows: Select "PC" under "Trigger On". Note: You must use PC with register stimulus. Enter 0x1a under "Trig Value". Select TRISB under "Pin/Register". Note: You cannot inject file values into port registers, e.g., PORTB. Use pin values (explained next.) Also, you cannot inject file values into the W register. 6. Select "File" under "Value". This will open a dialog to select a register stimulus file. Select reg1.rsti and click Open to enter this file under "Value". 但是在第6步驟時,Select reg1rsti,我都找不到 .rsti類型的檔案,而後輩是使用MPLAB v6.6版。請問先進,謝謝!
發表於: 2004/9/30 16:11
|
|||
|