Search found 148 matches

by WestfW
Thu Apr 11, 2013 5:06 pm
Forum: chipKIT Boards
Topic: What reasons to buy Max32 over Uno boards?
Replies: 8
Views: 1225

Re: What reasons to buy Max32 over Uno boards?

I assumed [we were] comparing the max32 with the uno32.
Oh! Could be. Except I don't think the "poorer library support" comment would apply? Except for the peripherals that aren't present at all on Uno32, Uno32 and Max32 should have about the same level of library support...
by WestfW
Thu Apr 11, 2013 6:42 am
Forum: General Discussion
Topic: Is PIC slower than AVR at same clock freq?
Replies: 3
Views: 2138

Re: Is PIC slower than AVR at same clock freq?

AVR uses an ARM core
No. Arduino Due uses an ARM-cored Atmel chip, but "AVR" is a CPU that is NOT ARM-based. "AVR" is a proprietary Atmel 8-bit CPU, and AVR32 is a proprietary Atmel 32-bit CPU. (And Atmel also makes ARM9, ARM CM3, and ARM CM4 chips. Just to keep you confused.)
by WestfW
Thu Apr 11, 2013 6:39 am
Forum: chipKIT Boards
Topic: What reasons to buy Max32 over Uno boards?
Replies: 8
Views: 1225

Re: What reasons to buy Max32 over Uno boards?

whether to buy the Max32 or Uno board. Shouldn't you be comparing Uno32 against Uno, or Max32 against MEGA? That way the chipKits would become "less expensive." No one has mentioned "ChipKits are Faster" ? OTOH, I don't think it's fair to say that the Max32 has Ethernet or USB; the chip has that su...
by WestfW
Tue Nov 20, 2012 2:34 am
Forum: Tips, Tricks & Hints
Topic: Interrupt Handler Timing debug help
Replies: 3
Views: 1384

Re: Interrupt Handler Timing debug help

It's a bad idea to try to call Serial.print() from an ISR function.
(it will fail completely on AVR Arduinos, because serial interrupts need to occur for the output to actually go anyway, and all interrupts are off inside in ISR; I'm not sure about PIC32 with its more complex interrupt controller.)
by WestfW
Sat Nov 17, 2012 3:14 am
Forum: Libraries
Topic: chipkit32 FFTs
Replies: 8
Views: 3099

Re: chipkit32 FFTs

(It does look like Microchip is using the gnu assembler as THE assembler for PIC32 (and for the 16bit PIC24/dsPIC30/dsPIC33 as well) So that's one non-problem!)
by WestfW
Fri Nov 16, 2012 8:19 am
Forum: Libraries
Topic: chipkit32 FFTs
Replies: 8
Views: 3099

Re: chipkit32 FFTs

Is this possible, and if so, would it involve anything more than just copying those 2 files over so the compiler can see them? Code is code. If you build the assembler and link it to the C code, the standardization of MIPS API definitions should allow it to be compiled. There are a couple of possib...
by WestfW
Mon Oct 29, 2012 6:31 am
Forum: IDE Integration
Topic: Using preprocessor macros to decide what to include ignored
Replies: 2
Views: 887

Re: Using preprocessor macros to decide what to include igno

I think this came up on Arduino as well, but it turned out that the problem was that the file was NOT being included, but was still being linked... #if 0 #include <SPI.h> #endif void setup() { SPI.transfer(22); } will not compile. But if the SPI.transfer is commented out, it does compile, and still ...
by WestfW
Mon Oct 29, 2012 6:12 am
Forum: Libraries
Topic: Cos, and Sin problem
Replies: 24
Views: 3945

Re: Cos, and Sin problem

(I should note that the new mpide is using the 64bit trig functions even for "float" variables (just like a "real" computer))
by WestfW
Mon Oct 29, 2012 6:03 am
Forum: Libraries
Topic: Cos, and Sin problem
Replies: 24
Views: 3945

Re: Cos, and Sin problem

The latest test image (20121013) does indeed seem to support "long double" as a 64 bit quantity, and comes up with exactly 9.... // Make the test q64 = asin(acos(atan(tan(cos(sin(q64)))))); 9d0013f4: 8fa40020 lw a0,32(sp) 9d0013f8: 8fa50024 lw a1,36(sp) 9d0013fc: 0f400ab3 jal 9d002acc <sin> 9d001400...
by WestfW
Mon Oct 29, 2012 5:28 am
Forum: Libraries
Topic: Cos, and Sin problem
Replies: 24
Views: 3945

Re: Cos, and Sin problem

Hmm. Using the last "release" version (I think. I can't actually read the version number in the "about" dialog...), I get: Elapsed time 10000x : 390 milliseconds Result= 9.000030517578125 But it's not doing double-precision trig: q64 = asin(acos(atan(tan(cos(sin(q64)))))); 9d0013f4: 8fa40018 lw a0,2...