New answers tagged

0

I have found a way to tackle this. Here is my arduino code: char buf[100]; const double coefficients[28] = { -0.006416610121367, -0.01179616274682, -0.01212859343535,-0.001491136183145, 0.0175211951058, 0.03193599126761, 0.0259553014052,-0.004580133449276, -0.04206485416456, -0.05260424218688,-0.007566809377484, 0.09242896920118, 0.2100842841173, 0....


1

Not using the Arduino API, no. But you can by direct manipulation of the SAM3X8E registers. You should study section 38 of the datasheet, where it mentions in the list of facilities: Independent Complementary Outputs with 12-bit Dead-Time Generator (Also Called Dead-Band or Non-Overlapping Time) for Each Channel


1

According to the Wire library documentation https://forum.arduino.cc/index.php?topic=132130.0: The Arduino Due has two I2C / TWI interfaces SDA1 and SCL1 are near to the AREF pin and the additional one is on pins 20 and 21. And the table: Arduino Due: 20 (SDA), 21 (SCL), SDA1, SCL1 So it seems in your table SCL2 should be SCL1.


1

Yes, although you may need to modify the variant files to allow access to them. Every function on the SAM3X8E is a "multiplexed" function. That is, it shares pins with other functions. For example CANTX0 is an alternative function on pin PA0. You can find all the alternative function mappings on page 40 of the datasheet. You may find that many of these ...


0

As far as I know you can use them as GPIO too (I know for sure for Arduino Uno/Mega etc., I know for STM32, I would be very surprised if it's not possible for Arduino Due. Other solutions are using shift registers like: 74HC595: For adding upto 32 outputs using SPI 74HC565: For adding upto 32 inputs using SPI Or you can use GPIO extenders using either SPI ...


0

arduino.write(data[i].tobytes()) time.sleep(.1) print(int.from_bytes(arduino.readline(),byteorder='little') ) Is this what you whant?


0

You will find a good introduction on using port registers here. It also mentions some cons and pros of using port manipulation.


Top 50 recent answers are included