Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 2642

Study and applications of electricity, electronics, and electromagnetism. Use this tag when someone who has trained as an electrical engineer is likely to be able to answer your question.

7 votes
Accepted

Saving RAM Memory when writing to 2K page size NAND flash

You don't need to fill the page register all in one go. You begin a page write (i.e. the "Page Program" operation) by writing the Serial Data Input command (0x80), the column address, and the row add …
Patrick's user avatar
  • 1,092
7 votes
Accepted

In a device tree for AM335x, how do I know what pinctrl values to use?

To update your .dts file (that includes the file am335x-bone-common.dtsi) for a pinmux assignment, consult the datasheet to determine which pin(s) are assigned to a function. This is in section 4.3 ( …
Patrick's user avatar
  • 1,092
6 votes
1 answer
158 views

Why are words bit-shifted for an Atmel SAM4S SPI slave?

I have discovered a problem when using the SPI peripheral in slave mode on an Atmel SAM4S. Occasionally words can become bit-shifted. I can force this condition by enabling the peripheral some numbe …
Patrick's user avatar
  • 1,092
7 votes
1 answer
3k views

In a device tree for AM335x, how do I know what pinctrl values to use?

In the Linux kernel's dtsi file (am335x-bone-common.dtsi) for the AM335x processor, there is the am33xx_pinmux tree, with values like this: i2c0_pins: pinmux_i2c0_pins { pinctrl-single,pi …
Patrick's user avatar
  • 1,092
12 votes
1 answer
2k views

How fast should I sample with a logic analyzer?

If I have a 10 MHz digital signal, how fast do I need to sample with a logic analyzer to avoid any bit errors? Does the minimum sample rate increase if I want to attach a protocol decoder (e.g. SPI)? …
Patrick's user avatar
  • 1,092
5 votes
Accepted

Why are words bit-shifted for an Atmel SAM4S SPI slave?

This is due to the design of their SPI peripheral. In slave mode, the shift register is shifted each SPCK (assuming NSS is low and SPIENS is set). There is an internal counter (not shown in the bloc …
Patrick's user avatar
  • 1,092
8 votes
1 answer
175 views

How can I increase my processor's ADC resolution?

I have an Atmel SAM4S MCU with a 12-bit internal ADC. I would like to achieve 16-bit resolution at a sample rate of 500 Hz. The input to the ADC is fairly low-frequency (about 20 Hz max frequency co …
Patrick's user avatar
  • 1,092