Search found 18 matches

by Bernard Leak
Fri Nov 09, 2012 6:29 pm
Forum: bug reports
Topic: Trial block-sets for R2006a and R2006b broken?
Replies: 0
Views: 8662

Trial block-sets for R2006a and R2006b broken?

I downloaded the trial block-sets for R2006a and R2006b today, and they seem to be broken. Both are Version 3.2b, dating back to 31st March 2010. I saw this before, but on a system so unstable that I didn't trust the results: these trial block-sets have not changed since. If I create a new model and...
by Bernard Leak
Wed Apr 20, 2011 1:33 pm
Forum: bug reports
Topic: CAN configuration bug
Replies: 0
Views: 9579

CAN configuration bug

See also my changes to http://www.kerhuel.eu/wiki/Block/CAN_Configuration These include suggestions for better prompts in the block's masked parameter dialogue. In particular, note 'Progagation' should be 'Propagation' (and 'bits' should be 'quanta'). 'Baud Rate' should be 'Baud Rate Prescaler - 1' ...
by Bernard Leak
Thu Apr 16, 2009 11:38 am
Forum: dsPIC Peripherals
Topic: ADC inputs yet again
Replies: 2
Views: 8236

Re: ADC inputs yet again

Here's a tiny illustrative model. This one shows the problem even though there is no ADC input at all! On this CPU (dsPIC33FJ256GP710) the digital I/O pins given are also analogue inputs (numbered as labelled). At power-on, all the analogue input pins are configured as ADC inputs by default, represe...
by Bernard Leak
Tue Apr 14, 2009 3:52 pm
Forum: dsPIC Peripherals
Topic: ADC inputs yet again
Replies: 2
Views: 8236

ADC inputs yet again

It has been some months since I last picked up a new copy of the block-set, and the latest version seems to have broken something which once worked. The default behaviour seems to be to leave all analogue input pins configured for analogue input. Explicitly putting a digital I/O block in a model wou...
by Bernard Leak
Tue Apr 14, 2009 9:23 am
Forum: Requirement, Installation & Configuration
Topic: Missing 128ms POR delay
Replies: 2
Views: 8477

Re: Missing 128ms POR delay

Thanks for the update. I didn't open the files individually - I used grep! I said I'd see about getting a testimonial for you quite a long time ago. My managers are quite happy to let me do it, though of course they will have to approve any text I send you. I simply haven't had any spare time. Berna...
by Bernard Leak
Wed Apr 08, 2009 12:44 pm
Forum: Requirement, Installation & Configuration
Topic: Missing 128ms POR delay
Replies: 2
Views: 8477

Missing 128ms POR delay

I'm not quite sure which PIC models have this. It's not well documented. The default POR delay (FPWRT in FPOR) seems to be 128ms. It's given like that in the MPLAB GUI (the 'Configuration bits' window), and there is a selector for this (FPWRT_PWR128) in *all* of the dsPIC33F header files. This count...
by Bernard Leak
Fri Sep 26, 2008 10:35 am
Forum: Request for new functions / Peripheral / Chip support
Topic: Changing oscillator configuration (was Two-speed start-up)
Replies: 2
Views: 8424

Re: Changing oscillator configuration

Dear List, The problem arises whenever the input frequency to the PLL is not in the range 4MHz to 8MHz. The FRC is near the top of this range, at 7.37MHz. This means that HS + PLL is only possible with clock-switching. We are using 10MHz oscillators on several of our boards: hence the problem. The d...
by Bernard Leak
Thu Sep 25, 2008 1:20 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Changing oscillator configuration (was Two-speed start-up)
Replies: 2
Views: 8424

Changing oscillator configuration (was Two-speed start-up)

Thank you for the new block-set (0.98fe)! I have found no bugs, but there is still a problem of a different kind. For the code to run at all, I must give the model an oscillator configuration with which it can start stably. However, none of the timers or peripheral modules are enabled until I have a...
by Bernard Leak
Wed Sep 17, 2008 6:35 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Two-speed start-up
Replies: 3
Views: 10250

Re: Two-speed start-up

Apologies! The "two-speed start-up" is a complete red herring: I misunderstood what it meant. This simplifies things. If you give an option in the "Master" block which allows the oscillator to be changed, that would help. I only want to set the oscillator once, as early as possible, and I can do tha...
by Bernard Leak
Tue Sep 16, 2008 2:35 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Two-speed start-up
Replies: 3
Views: 10250

Two-speed start-up

M. Kerhuel, we use the PIC mechanism for two-speed start-up, and we would very much like this to be supported in the block-set. The necessary strange invocations for the dsPIC33F series follow (taken from the Microchip manual section 70186b.pdf). I believe it's similar for other PIC variants, but ha...
by Bernard Leak
Wed Sep 03, 2008 6:50 pm
Forum: bug reports
Topic: Configuring in a sub-system
Replies: 1
Views: 7167

Configuring in a sub-system

I want to use a fixed configuration hidden from ordinary users, so hiding it inside a masked sub-system makes sense. However, the resulting <model>_main.c tries to include the generated headers from the sub-system, as <model>/<subsystem name>.h and <model>/<subsystem name>_private.h instead of <mode...
by Bernard Leak
Wed Sep 03, 2008 2:49 pm
Forum: bug reports
Topic: ADC Input block - solved
Replies: 4
Views: 11846

Re: ADC Input block - solved

Thanks: all my problems with the ADC block are now with the hardware!
by Bernard Leak
Thu Aug 28, 2008 5:06 pm
Forum: bug reports
Topic: ADC Input block - solved
Replies: 4
Views: 11846

Re: ADC Input block

Dear List, I am using version 0.98fb of the dsPIC block-set, dated 21st August 2008, for MatLab R2006b. The list picRef.AN is wrong: it contains spurious NaNs at indices 23 and 24 (1-based: 22 and 23 if 0-based) which cause AN22 and AN23 to "vanish", and all higher-numbered analogue pins to be numbe...
by Bernard Leak
Tue Aug 26, 2008 12:21 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 63626

Yes, ECAN, please!

We are very interested indeed in getting an ECAN block working. We are using PIC variants which have ECAN but not CAN, and that's what we will be offering our customers. Our customers are certainly using CAN (as do we), often with the MathWorks CANdb support), and we want to be able to offer them CA...
by Bernard Leak
Tue Aug 26, 2008 10:04 am
Forum: bug reports
Topic: ADC Input block - solved
Replies: 4
Views: 11846

ADC Input block - solved

M. Kerhuel, there is still a problem with the ADC Input block. For dsPIC33FJ256GP710, it gives the permitted analogue input pins as 0-21 and 24-33, instead of 0-31 (which is certainly correct) It is as though 22 and 23 were entered as 32 and 33, and the list was then sorted into order. Typing 22 pro...
by Bernard Leak
Mon Aug 18, 2008 3:56 pm
Forum: dsPIC Peripherals
Topic: No SPI output on the pins?
Replies: 3
Views: 9109

Re: No SPI output on the pins?

Apologies: it was my mistake. I can't work out exactly what I was doing earlier, but the problem was that my SPI Configuration block didn't have 'SDO Enabled'. I mistook this for "slave data out" instead of "SPI data out". It all works correctly now. On another note, two small corrections to the Eng...
by Bernard Leak
Fri Aug 15, 2008 5:18 pm
Forum: dsPIC Peripherals
Topic: ADC: some problems (revisited)
Replies: 1
Views: 7271

ADC: some problems (revisited)

A previous post of mine seems to have vanished! In any case, it was out-of-date. My company (add2) paid on 1st May for an unlimited version of the dsPIC block-set. The current release notes suggest that changes to the ADC Input block have removed several problems I had seen. I'm eager to try it .. b...
by Bernard Leak
Fri Aug 15, 2008 3:57 pm
Forum: dsPIC Peripherals
Topic: No SPI output on the pins?
Replies: 3
Views: 9109

No SPI output on the pins?

Dear List, I am having a strange problem with the SPI Input/Output block (only used for output in this case). The code generated by the block seems to be correct, but the call to WriteSPI1() does not actually drive an output on the pins. I don't, of course, know what WriteSPI1() actually does. Repla...