Search found 64 matches

by PICedh
Mon Nov 30, 2015 9:08 pm
Forum: Libraries
Topic: Issue TWI lib for MAX32
Replies: 3
Views: 607

Re: Issue TWI lib for MAX32

Many thanks, it works on Max32 with the new lib

Eric
by PICedh
Thu Nov 26, 2015 10:39 pm
Forum: Libraries
Topic: Issue TWI lib for MAX32
Replies: 3
Views: 607

Re: Issue TWI lib for MAX32

Hi I have added in the wire lin a timeout of 10000 cycles in order to avoid blocking but I would like the issue with MAX32. Thanks static volatile uint32_t twi_timeout; .... twi_timeout = 0; // wait for read operation to complete while((TW_IDLE != TW_STATUS) && (twi_timeout < 10000)) { asm volatile(...
by PICedh
Mon Nov 23, 2015 11:19 pm
Forum: Libraries
Topic: Issue TWI lib for MAX32
Replies: 3
Views: 607

Issue TWI lib for MAX32

Hello, The function Wire.requestFrom doesn't work with a board Chipkit Max32 if the length of the buffer requested is > 3 bytes. There is no such limitation with the board Chipkit Uno32 (I have tested the same program with both boards) In fact the following statement in twi.c /twi_readFrom is loopin...
by PICedh
Thu Sep 17, 2015 8:54 pm
Forum: Software Builds and Announcements
Topic: Official Release 20150823
Replies: 5
Views: 1943

Re: Official Release 20150823

Hello, I used to devellop since a long time with the release MPIDE-0023-2013-07-15. I have installed this latest release and a lot of programmes don't compile any more or run with errors. The first issue encountered is the change of type for the very common function print (void_> size_t ); So I need...
by PICedh
Fri Apr 03, 2015 11:23 am
Forum: Tasks and Priorities
Topic: Virtual Wire lib for CHIPKIT
Replies: 11
Views: 2560

Virtual Wire lib for CHIPKIT

Hello, I have adapted the Arduino Virtual Wire lib for CHIPKIT? this lib. This lib is very helpfull for a very low cost transmission between 2 shields. I have also improved the lib by adding functions that transmitt float and indicate source and type of data. More details here: http://chipkit.net/vi...
by PICedh
Fri Apr 03, 2015 10:53 am
Forum: Libraries
Topic: NEW Virtual Wire lib for CHIPKIT
Replies: 4
Views: 1035

Re: NEW Virtual Wire lib for CHIPKIT

I have added new functions in my lib that allow transmitting float data and identifying the source and the type of data.
Very helpfull in case of multiple sensors (temperature, pressure, acoustic, brightness ...)
by PICedh
Thu Dec 18, 2014 9:43 pm
Forum: Libraries
Topic: NEW Virtual Wire lib for CHIPKIT
Replies: 4
Views: 1035

Re: NEW Virtual Wire lib for CHIPKIT

I use RF Link Transmitter - 434MHz and RF Link Receiver - 4800bps (434MHz)

They are very cheap (3$)

Before I used XBee modules that are very expensive
by PICedh
Tue Dec 02, 2014 11:38 pm
Forum: Libraries
Topic: NEW Virtual Wire lib for CHIPKIT
Replies: 4
Views: 1035

NEW Virtual Wire lib for CHIPKIT

Hello; I have modified the lib Virtual Wire originally developped for Arduino in order to be able to run it on PIC32 Microcontrollers The main changes concern the interruption setup and handling (OC1 and Timer 2) VirtualWire is an library that provides features to send short messages, withoutaddress...
by PICedh
Tue Dec 02, 2014 10:30 pm
Forum: Libraries
Topic: Why _OUTPUT_COMPARE_1_VECTOR interrupr is looping ?
Replies: 1
Views: 507

Re: Why _OUTPUT_COMPARE_1_VECTOR interrupr is looping ?

Hi,

Please note that I have removed the 'Serial.println' in the ISR handler and now everything is fine.
I don't know the rott casue of the issue but I will take care of the manner to debug ISR
by PICedh
Sat Nov 29, 2014 7:50 pm
Forum: Libraries
Topic: Why _OUTPUT_COMPARE_1_VECTOR interrupr is looping ?
Replies: 1
Views: 507

Why _OUTPUT_COMPARE_1_VECTOR interrupr is looping ?

Hello As soon as OC1 is enable, the following source loops in the Interrupt fonction and never come back to the main. Could you please indicate what is wrong ? Here is the log: vw-setup chipkit prescaler: 1 nticks: 5000 __ISR chipkit end __ISR chipkit __ISR chipkit end __ISR chipkit __ISR chipkit en...