New answers tagged

2

I need to "invert" the signal. I don't fully understand what that means. It means you have put the signal through an inverter before sending it to the UART RX input, so that high becomes low and low becomes high. I thought it would mean that 1s are 0s and vice versa. Yes, but the 'idle' level between frames also needs to be inverted, so the UART ...


1

Standard UART serial interface is using logic H (1) also known as "mark" as the idle signal level and then the transaction on the line starts with a "start bit" that is encoded as a "L" (or 0) for the duration of one bit period. The data bits then follow and the last bit is the Stop bit coded as "H" (1). The chart you ...


3

if the clock is low and the data is read by the receiver on the leading rising edge, that means that the receiver reads a bit before the transmitter sends anything. Look at D7: - (Image source: Corelis - SPI Tutorial) It is always set up prior to reading.


0

The timing diagram you linked seems pretty clear to me. The transmitter makes sure that the first bit is correct before sending the first clock pulse. The master is in control of the clock signal.


0

The truth is that there is no commonly available cable for this. An easy and reasonable solution is to use a connector that can handle 10A per pin, and get one with enough pins for the power and data, even though the data doesn't need large pins. If you make your own cable using these connectors, you can make the conductors for the data appropriately sized. ...


0

Thanks to @Hearth and @brhans for their help in the comments, but for some reason @brhans doesn't leave their answer here. As @brhans said: A string in C is terminated with a NULL which is a value of 0. So your strncpy call stops copying when it gets to the 0 value you sent. If you're trying to copy a block of bytes with a known size you should be using ...


0

I would suggest you use two units and use the send and receive examples included with the library. The library you are using works great and does it well. Mine came up on the first try. Just a bit of information, CAN messages must be acknowledged or you will get an error. A common misconception is that a CAN module can talk to itself, technically it has to ...


2

Datasheet, page 6: Other handling precautions ▼That using the wrong pressure range or mounting method may result in accidents. ▼The only direct pressure medium you can use is dry air. The use of other media, in particular, corrosive gases (organic solvent based gases, sulfurous acid based gases, and hydrogen sulfide based gases, etc.) and media that contains ...


3

Can I use a multimeter to measure the voltage or resistance between GND and TX (DATA_OUT) on my meter, and expect a change every ~10 seconds? Yes. Every 10 seconds your meter should send several 8 bit serial data bytes at up to 2400 Bd, which should show on the multimeter as a momentary DC voltage of ~1.7 V (50% of 3.3 V) on average. Depending on how much ...


0

Based on your post and comments to other answers, the schematic is wrong as you are connecting 5V supply from PC and your local 5V supply together. What you seem to want is the self powered configuration and there is an example schematic in the datasheet for that. Only difference is you might want to use 3.3V IO supply as your MCU pins may or may not be 5V ...


0

USBDM, USBDP look good, just like the FT232R's datasheet: The only problem may arise is the power source. Do you intend to power your MCU from the PC or the MCU has its own power? You have connected the power of the PC to the PCB, this means you will power the PCB from your PC, so do not connect any other external power to the PCB if that is the case. ...


1

I've just released an open source application that is doing exactly what you want to do. The application is multiplatform (Win/Linux/MAC) and fully customizable with one file. It require only two files to add to your microcontroller project. The project is here link to github project I'm already using it for my job. EDIT: A summary of the app: The project ...


0

The SerialFlash library may be hardcoded to use the standard SPI class and pins, in which case you will need to modify it (the library) so that it uses your custom SPI.


1

I suspect you are looking for a setup where a parallel to serial register on the "far" end transmits the data through the wire and a serial to parallel to serial shift register on the receiving end. However, that basic approach has several issues: Most of the common register chips come in 8 bits so you will need to chain two of them. You are ...


Top 50 recent answers are included