Search found 71 matches

by resodad
Fri Apr 30, 2010 4:11 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 37750

Re: SPI EEPROM Record and Playback on Explorer 16

Thierry thanks for the help.
Program is working to write then read from EEPROM. See atachments.
by resodad
Thu Apr 29, 2010 9:26 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 37750

Re: SPI EEPROM Record and Playback on Explorer 16

Still not working :(
Latest model attached.
john
by resodad
Thu Apr 29, 2010 8:59 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 37750

Re: SPI EEPROM Record and Playback on Explorer 16

OH!
I changed commands to 8 bits--right
but also:
changed address to 8 bits :WRONG!

Stand By
John
by resodad
Thu Apr 29, 2010 8:26 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 37750

Re: SPI EEPROM Record and Playback on Explorer 16

Lubin and all, I made that change Thierry--8-bit addresses. Also I made the data 8 bits and the SPI data setting 8 bits instead of 16. It is still not working. I will attach scope traces showing /CS, CLOCK, and both DATA lines. These traces look good to me: from bottom to top: /CS, DATA out, DATA in...
by resodad
Wed Apr 28, 2010 11:11 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 37750

Re: SPI EEPROM Record and Playback on Explorer 16

Lubin, Thierry: Are you building something like a universal remote control ? No, it's not a universal remote; I am trying to record and reproduce radio controlled car signal wave forms. you have to enable the output "SDO enable" What is "SDO enable" for? Here is my attempt at writing a single value ...
by resodad
Wed Apr 28, 2010 8:43 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 37750

Re: SPI EEPROM Record and Playback on Explorer 16

Hello Thierry,
I will do that. Also, I had a look at 24LC256 data sheet.I see that I have to send EEPROM WREN and WRITE commands and then address before I write to EEPROM, so I have some work to do before I post.
Thanks,
John
by resodad
Tue Apr 27, 2010 10:12 pm
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 37750

Re: SPI EEPROM Record and Playback

Thanks Lubin, Your info about interrupts helped me along. There were several problems with the previously posted model SPIwork2. I simplified to make sure I can do an easy task first. Easy Task: Measure PWM input using IC2 and immediately duplicate it on OC2. This is running--output tracks input per...
by resodad
Fri Apr 23, 2010 2:04 am
Forum: dsPIC Peripherals
Topic: SPI EEPROM Record and Playback on Explorer 16
Replies: 17
Views: 37750

SPI EEPROM Record and Playback on Explorer 16

Hello, I would like to record a PWM signals and reproduce ("play back") later. These are radio control signals: 20ms fixed period, high time varies from 0.5 to 2.5 ms. My proposal is to record the high times to EEPROM on board the Explorer 16. This EEPROM is already connected to SPI2. A toggle switc...
by resodad
Thu Apr 01, 2010 7:16 pm
Forum: Advanced Simulink & RTW Questions
Topic: Rx Interrupt buffer size
Replies: 12
Views: 27564

Re: Rx Interrupt buffer size

Thanks.
I don't know what those "Errors" came from, maybe I was not viewing output data corretly.

Here is a file that appears to be working now. Sorry, but I dont know how to insert images directly in the forum here. See the attached files.

John
by resodad
Thu Apr 01, 2010 3:43 pm
Forum: Advanced Simulink & RTW Questions
Topic: Rx Interrupt buffer size
Replies: 12
Views: 27564

Re: Rx Interrupt buffer size

Thanks. The use of enabled subsystems might work, but I think my problem with my own models and with the one you just posted is this: I can not control the sequence of the data going out UART2. Muxed signals to UART Tx seem to mix up bits producing bad output. Ordered Tx blocks are not working--it a...
by resodad
Wed Mar 31, 2010 9:01 pm
Forum: Advanced Simulink & RTW Questions
Topic: Rx Interrupt buffer size
Replies: 12
Views: 27564

Re: Rx Interrupt buffer size

Thanks. Here is what I am trying to do. Sensor data comming in UART1, see attachment 1 for oscilloscope views. 8-bit data ranges 0 to 255 decimal; separeate hundreds, tens, and ones digits and transmit the ASCII equivalent out UART2 followed by comma and space. I am not sure how to do it. See attach...
by resodad
Wed Mar 31, 2010 12:24 pm
Forum: Advanced Simulink & RTW Questions
Topic: Rx Interrupt buffer size
Replies: 12
Views: 27564

Re: Rx Interrupt buffer size

Hi Lubin, Your example UART_SendVectorPubli here is similar to what I am attempting. Here are my questions: 1. Regarding UART Tx, do the block ordering inputs ond outputs control the sequence of data sent out the UART port? In your example, first send the Tx Output, followed by Tx Output1, followed ...
by resodad
Wed Mar 03, 2010 11:15 pm
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 12398

Re: UART on Explore16

I am attaching an example for the Flex board
by resodad
Wed Mar 03, 2010 5:55 pm
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 12398

Re: UART on Explore16

Excellent work Lubin, thank you much. This project is working now on Explorer16 with sdPIC33FJ256GP710. I was adding the file to a MPLAB Project instead of importing. One minor problem: The simulink source "repeating sequence stair" does not work as I expect now, but it's not a big deal since the so...
by resodad
Tue Mar 02, 2010 9:10 pm
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 12398

Re: UART on Explore16

Thanks, I still have no output from dsPIC Attached is an image of my configuration bits, and the latest simulink model. I cannot find a configuration bit regarding MCLR. I don't know how to set / clear. I am not sure what you mean by "release button;" I assume you mean Programmer menu > release from...
by resodad
Fri Feb 26, 2010 8:49 pm
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 12398

Re: UART on Explore16

I am new to MPLAB; I'm not sure what to do. So far I have used the ICD3 only in degugger mode. I am thinking the procedure is build the model directly in matlab, add the .hex file to the MPLAB project and then in MPLAB: programmer > select programmer > ICD3 programmer > program and the program will ...
by resodad
Fri Feb 26, 2010 12:51 am
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 12398

Re: UART on Explore16

Lubin, I have a new problem on this effort: When I run the program it will very quickly halt:
Running...
Target halted
I am not aware of changing anything. If I attempt to import all source files into MPLAB and rebuild, I get:
Link step failed.
.
.
.
BUILD FAILED
by resodad
Wed Feb 10, 2010 6:26 pm
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 12398

Re: UART on Explore16

YES! THANKS Bobes
of course you are correct. I changed the input to [0:255} and now have the entire ASCII set
Cheers,
John
by resodad
Tue Feb 09, 2010 6:58 pm
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 12398

UART on Explore16

Hello, I am trying to use UART2. It is very simple: send sequence 0, 1, 2, 3...15 repeating to UART2 at 9600/8/1/none/none. Result: Terminal program on computer --cursor jumps from position to position, but no text or numbers. I am generating code through MPLAB. versions: Windows vista MPLAB v8.36 C...
by resodad
Wed Jul 08, 2009 2:14 pm
Forum: Requirement, Installation & Configuration
Topic: bad link
Replies: 7
Views: 15814

Re: bad link

Thanks Lubin. The demo blockset was gotten from tech support at microchip. The direct-download file did not workon my computer. I attach the file. Computer is Windows Vista. Matlab is R2009b. I can drag new dsPIC blocks from the simulink menu to your model, but your originals can't seem to find the ...
by resodad
Tue Jul 07, 2009 1:15 pm
Forum: Requirement, Installation & Configuration
Topic: bad link
Replies: 7
Views: 15814

bad link

Hello, I downloaded the IMU files and I get "bad link" in the simulink blocks even though the folder containing the blockset is in the matlab path. A different simulink model (in a different folder) with the dsPIC blocks opens correctly. Can yuu help? Thanks, John Matlab show this error: Discrete Wa...