Re: [Flashforth-devel] 70 MIPS on a dspic33ep512mc806?
Brought to you by:
oh2aun
From: Bob E. <bob...@ti...> - 2016-06-29 16:39:00
|
Thanks for the hints chaps, I got the 70MIPS version going pretty well. It's been soaking a multitask based 'LED flash' test for a couple of days. I think I'd got the HSPLL oscillator and baud rate settings right. What did need changing was the 'MS' delay word. My solution was to set timer1 to have a prescaler of 8:1 and load the timer with MS_PR_VAL = ((FCY/1000)/8-1) instead of ((FCY/1000)-1) to keep within 16 bits. Mikael, will I have to fix the cpu 'LOAD' word as well which uses timer3? I notice 'mov #FCY/3126, W2' in the definition - how is the magic number 3126 derived, please? The serial interface is set at 9600 baud for now. I get the expected errors on uploading files from my Windows PC until I slow Teraterm down with inter-line and char delays. Then the upload is fault free. I use an HC-05 bluetooth module for the serial link - it's fun to see how far around the house and garden I can communicate with the dspic. regards, Bob |