hybridfree/eevblog-posts huggingface dataset:
ATmega4809 won't respond - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: July 10, 2019, 10:19:06 am
content: I wrote a program for a project with an atmega3208 an got absolutely nothing out. So I started to play with the dev board with a 4809 on it. I wrote the below simplest of programs but other than clock out I get nothing other that some pins permanently low or high:Code:int main(void){CCP = 0xD8;CLKCTRL.MCLKCTRLA = 0b10000000;PORTA.DIRSET = 0xFF;PORTB.DIRSET = 0xFF;PORTC.DIRSET = 0xFF;PORTD.DIRSET = 0xFF;PORTE.DIRSET = 0xFF;PORTF.DIRSET = 0xFF;while(1){PORTA.OUTSET = 0xFF;PORTB.OUTSET = 0xFF;PORTC.OUTSET = 0xFF;PORTD.OUTSET = 0xFF;PORTE.OUTSET = 0xFF;PORTF.OUTSET = 0xFF;PORTA.OUTCLR = 0xFF;PORTB.OUTCLR = 0xFF;PORTC.OUTCLR = 0xFF;PORTD.OUTCLR = 0xFF;PORTE.OUTCLR = 0xFF;PORTF.OUTCLR = 0xFF;}}

author: Simon
author_rank: Unknown
timestamp: July 10, 2019, 10:54:55 am
content: now working, I did nothing, very strange.

author: westfw
author_rank: Super Contributor
timestamp: July 10, 2019, 11:25:57 pm
content: I have (using MPLAB-X):Code:#define F_CPU (20000000/6)#include <xc.h>#include <util/delay.h>void __attribute__((noinline)) mydelay();void mydelay() {_delay_ms(1000);}void main(void) {VPORTA.DIR |= 1<<7;while (1) {mydelay();VPORTA.IN |= 1<<7;}return;}Which works fine, even on my home-built hardware...

author: cv007
author_rank: Frequent Contributor
timestamp: July 11, 2019, 12:47:53 am
content: VPORTA.IN |= 1<<7;Looked odd to me.I totally missed that in the datasheet (even though I know I read it).Glad you posted that codedatasheet-Writing to a bit of VPORTx.IN will toggle the corresponding bit in VPORTx.OUT.There is the missing VPORT TGL.

author: westfw
author_rank: Super Contributor
timestamp: July 11, 2019, 03:17:46 am
content: QuoteThe VPORT registers (DIR, OUT, IN) are essentially compatible with the DDR/PORT/PIN registers of the older ATmega chips. (A good move on their part, IMO.) (Writing 1 to the PINx register of an ATmega328 (for example) will also toggle the output. "very old" ATmega chips (like ATmega8) do not have this feature.)

author: cv007
author_rank: Frequent Contributor
timestamp: July 11, 2019, 05:05:45 am
content: I was using OUTTGL for my tog() function, as I somehow equated no TGL register in VPORT to mean in wasn't there. I haven't touched an avr in a long time (mega88/168/etc), but do remember the PIN toggle.https://github.com/cv007/ATTiny416XplainedNano/blob/master/Port.hppNow I feel better as it matches the rest of the pin functions, and I can save a few bytes every time I toggle an led (seems to be the only time I use toggle).For really nice bit setting/clearing, the pic32 (I use the mm) is nice to use where almost every register is capable of set/clr/inv (every register is 32bits, and there are 4 for each).
Updated MPLABX from 3.05 to 5.20. projects no longer have configurator data - Page 1
Forum section: electronics / general

author: Buriedcode
author_rank: Super Contributor
timestamp: July 01, 2019, 02:52:09 pm
content: Well, I thought it was about time I updated it, and whilst I normally deal with updates/upgrades - once you get used to it, it generally isn't that bad - it seems it didn't update the "configurator" generated stuff for my projects.When they released that I though it was a gimmick, but it can actually be quite handy for quickly setting up things like PWM and timers. After updating, opening a project, and then opening the configurator prompts to save to an mc3 file. But this is a "new" file and not the original settings. I realise the code is already generated, but this means if I want to see what the peripherals were doing in the old projects, I have to go old-school and go through the datasheets. This is fairly straight-forward for something like a timer, but for CLC there's at least 10 register to "decode".This is arguably more of a nag that anything else, and there was a 3 year difference between versions, but for 60+ projects, it'll take a very long time. Would installing 3.05 alongside the newer version, but a workaround, even if it is just for viewing configurator data?

author: JPortici
author_rank: Super Contributor
timestamp: July 02, 2019, 08:58:41 am
content: Updating to 5.20 is a very bad idea.- There was a change in theprojectconfiguration starting from 5.00, to support new things that have actually been implemented in 5.20 (altough you can see that "packs" were there from 5.05 and 5.10 has full support of dsPIC33CH for dual core projects)- However, 5.20 is buggy as hell and i've had so many issues in opening an old project that i decided to stay with 5.155.20 should have been pulled or patched instantly to "5.21", as they did in the past in simillar occasions.I suggest you install 5.15 instead and just say "yes" when informed of the configuration change

author: Buriedcode
author_rank: Super Contributor
timestamp: July 02, 2019, 03:11:25 pm
content: Ahh right. As I said, I often try to accept that updates aren't all bad, but I've had quite a few issues with this... all so I could use the newer PIC16F15313's. According to the support list, 5.15 will do so I'll use that instead. I still have 3.05 installed for legacy projects that don't need changing/updating.Also, many have mentioned it being slow, and... they weren't wrong. 5.20 is sluggish opening projects, closing, and constantly reminds me of things I have no interest in :/ With that said, it IS free.Cheers for the advice, I wasn't sure if I was being dense and not installed something I needed or whether microchip decided to do another"paradigm shift".

author: JPortici
author_rank: Super Contributor
timestamp: July 02, 2019, 04:06:49 pm
content: FYI, there are ways to speed up MPLAB X.. one of those is NOT HAVING 60 projects open at all timesAlso because background scanning and parser are enabled by default and will check everything periodically..
stm32 flash memory or sram - Page 1
Forum section: electronics / general

author: jealcuna
author_rank: Contributor
timestamp: July 19, 2019, 06:07:19 pm
content: I am downsamplign a signal to 1 sample per second during 1 hour as maximum and using 1 byte per sample. I want to stoarge this signal but I am not sure if by using sram memory of STM32F446 (128KB) will be enough. Also I am thinking in the posibility to keep at least 20 signal and again with 1 hour as maximun with 1 sample per second and 1 byte per sample. This give the followinng results:* 3600 seconds x 1 byte x 1 sample/second = 3600 bytes per signal* for 20 signals -> 20 x 3600 bytes = 72000 bytesI am not sure if my assumption is ok, but I have 128Kb for sram and also it is divided in stack, heap and Data. I dont know how to proceed. I know that I can reserve memory for data by using malloc or calloc. But It is not clear for me how to configure the start file .s to achieve this.Also memory flash is a candidate but I will prefer read your opinions.

author: andersm
author_rank: Super Contributor
timestamp: July 19, 2019, 06:11:53 pm
content: Just use a statically allocated array.

author: Kjelt
author_rank: Super Contributor
timestamp: July 19, 2019, 06:25:17 pm
content: Use a statically assigned double medium sized sram buffer in combination with a large external flash prom spi or i2c.Write first buffer till full set flag switch to second buffer and write the contents of the first buffer to the external flash memory (verify written data) then delete first buffer.When second buffer full , switch to first buffer for storing and save the second to ext flash, etc etc.Make sure the size of your sram buffer is aligned with the flash page size, so for instance if your flash page size is 2kB choose 2kB or 4kB or 6kB etc.

author: jealcuna
author_rank: Contributor
timestamp: July 19, 2019, 09:33:49 pm
content: You say,Code:static uint8_t signals;?

author: thm_w
author_rank: Super Contributor
timestamp: July 19, 2019, 10:37:01 pm
content: They mean statically allocated as in the size does not shrink or grow.so uint8_t signals or signal yes.

author: andersm
author_rank: Super Contributor
timestamp: July 19, 2019, 11:11:11 pm
content: Also static as in storage duration, so either a global variable or static local variable, whatever suits your code. The point is that you want the space to be allocated at compile time.
SC91F711 - Page 1
Forum section: electronics / general

author: firas
author_rank: Contributor
timestamp: May 26, 2019, 02:08:54 pm
content: This product SC91F711 I did not find his programmed (what the name of the programming device)

author: amyk
author_rank: Super Contributor
timestamp: May 27, 2019, 02:16:50 am
content: Apparently it is named "SOC PRO51" and available from here:https://www.socmcu.com/en/index.php?m=Product&a=detail&id=1&action=tools

author: firas
author_rank: Contributor
timestamp: July 01, 2019, 06:03:55 pm
content: Yes. beeprog or superpro or rt809f its not support this ic.Sorry my language English is poor
Spresense: 1.5MB RAM, Hexacore ARM, Arduino by Sony - Page 1
Forum section: electronics / general

author: GeorgeOfTheJungle
author_rank: Super Contributor
timestamp: June 25, 2019, 07:45:09 am
content: https://developer.sony.com/develop/spresense/https://developer.sony.com/develop/spresense/specifications

author: GeorgeOfTheJungle
author_rank: Super Contributor
timestamp: June 25, 2019, 11:51:27 am
content: I like the 1.5 MB inside the chip, it's good for pixelmaps for the UI/display. And the 6 cores of course. But it's 60€ at RS.

author: thm_w
author_rank: Super Contributor
timestamp: June 25, 2019, 11:35:25 pm
content: Is the camera any good? Seems not great if its 1080p 30fps. I mean thats fine but sony is known for its incredible sensors:https://www.sony-semicon.co.jp/products_en/IS/sensor1/products/isx012.htmlTheir warning is hilarious:QuoteAs comparison the $8 ESP32 comes with OV2640 (2MP only).Surprised if it can handle 1080p30, 8 mic ins, and audio out all at the same time. But maybe thats what the massive amount of ram is for, to buffer until it has time to process.

author: Boscoe
author_rank: Frequent Contributor
timestamp: June 26, 2019, 08:47:47 pm
content: GPS, audio recording and image recording? Marketed for GCHQ and the CIA?

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 26, 2019, 10:19:19 pm
content: Quote from: Boscoe on June 26, 2019, 08:47:47 pmI dunno, but we have a right to be somewhat suspicious, remember:https://en.wikipedia.org/wiki/Sony_BMG_copy_protection_rootkit_scandal

author: Doctorandus_P
author_rank: Super Contributor
timestamp: June 28, 2019, 02:43:23 pm
content: I do not buy sony.It's not only the rootkit scandal, but also "other os" and other ways in which they try to lure customers into a position where they can extort money from them.

author: edavid
author_rank: Super Contributor
timestamp: June 28, 2019, 03:01:49 pm
content: I wish people who post about new products would include the price. It took me several clicks to find out these cost $65. Hard to see what the market is exactly.
SSD1306 OLED menu interfacing with button and LED using PIC is not working! - Page 1
Forum section: electronics / general

author: radhika
author_rank: Regular Contributor
timestamp: June 21, 2019, 02:13:18 pm
content: Hello,I have built a menu code, and this little code is part of big code. I am interfacing in place of LED as shown in picture. But just for practical results i am using LED here.Code:void discharging_USB() {SSD1306_ClearDisplay();cursor(starting_row);SSD1306_GotoXY(starting_col, starting_row);SSD1306_PutC("1. 5V 1A");delay_ms(10);start_row = starting_row;start_row +=1;SSD1306_GotoXY(starting_col, start_row);SSD1306_PutC("2. 5V 2A");delay_ms(10);start_row +=1;SSD1306_GotoXY(starting_col, start_row);SSD1306_PutC("3. 5V 3A");delay_ms(10);start_row +=1;SSD1306_GotoXY(starting_col, start_row);SSD1306_PutC("4. Back");delay_ms(100);if(input_state(PIN_B5)==0 && m2==2){if( row_Ind ==1 && output_low(PIN_B0) && output_low(PIN_B1) && output_low(PIN_B2)){output_low(PIN_B0);output_low(PIN_B1);output_high(PIN_B2);button_select==1;}else if( row_Ind ==2 && output_low(PIN_B0) && output_low(PIN_B1) && output_low(PIN_B2) ){output_low(PIN_B0);output_high(PIN_B1);output_low(PIN_B2);button_select==1;}else if( row_Ind==3 && output_low(PIN_B0) && output_low(PIN_B1) && output_low(PIN_B2) ){output_low(PIN_B1);output_high(PIN_B0);output_low(PIN_B2);button_select ==1;}else{output_low(PIN_B0);output_low(PIN_B1);output_high(PIN_B2);button_select==1;}}}In this code, I only get the output from pin b2 but not the b0 or b1 when i press 5V 1A in the menu.. or 5V 3A in the menu. In this code only else statement is executing. Here, m2 ==2 is the menu 2 here. Here is the image link:https://postimg.cc/68js4q64

author: mikerj
author_rank: Super Contributor
timestamp: June 22, 2019, 09:11:32 pm
content: Why are you calling the output_low() pin set function in your if statements?Code:if( row_Ind ==1 && output_low(PIN_B0) && output_low(PIN_B1) && output_low(PIN_B2))I suspect you actually want to be testing the state of the pins, not setting them low? I have no idea what, if anything, the output_low() function returns but that's likely the cause of your problem.

author: thm_w
author_rank: Super Contributor
timestamp: June 24, 2019, 10:05:58 pm
content: and "button_select==1;" is not proper assignment of a variable.
STC-PROG - Resources from Baldu? - Page 1
Forum section: electronics / general

author: Chris56000
author_rank: Frequent Contributor
timestamp: June 21, 2019, 03:10:43 pm
content: Hi!Can anyone help me get the 27 page Document (Chinese but I can translate!) and the 5.5MB Software Resource Pack from Baidu for this little programmer pictured below please?I got this cheap little "STC-PROG" from AliExpress to try, but Being British, I've had no luck trying to create my own Baidu account - does it cost to download from Baidu by the way?https://pan.baidu.com/s/1RBKkOHtoAwvKdQgSZYsDwQPW given is b13eChris Williams

author: coromonadalix
author_rank: Super Contributor
timestamp: June 24, 2019, 12:17:34 am
content: nifty idea to use an pcie socket as a configuration switch / mode ...betemcu.cn redirect to aliexpressSoftware page with softs i've foundhttp://www.stcmicro.com/rjxz.htmlOnly thing i know it has an ch340 / ch341 ic for usb driverhttp://www.stcmcudata.com/STCISP/CH341SER.exeYou have the stc isp 4.88 in the download link ( i think its a chineese executable )http://www.stcmicro.com/rar/stc-isp4.88.rarEnglishhttp://www.stcmcudata.com/datasheet/stc/STC-ISP-V4.88/STC-ISP-V488-english.exeBut they are now at version 6.86 ??http://www.stcmicro.com/rar/stc-isp6.86.rarThis site may help ( Translation required )http://www.stcmcu.com/index.htmPlease note: their translated version to english are far from perfect, some options / menus or texts are superimposed ...Had to register some dll's with an registry trick ( attached file, remove the "dot jpg" at the file end) = register_runas.regAnd finally you do have a operating document 71 pages (need to be translated)http://www.stcmcudata.com/STC-TOOL.pdf
Failing to programing V850ES/JG3 with UART - Page 1
Forum section: electronics / general

author: stojke
author_rank: Regular Contributor
timestamp: June 25, 2019, 03:38:31 pm
content: Hello , I am having problems sending code that was given to me, in binary format, to this microcomputer via UART0.I have connected UART0 directly to my UART USB interface onto header of FTDI232 USB adapter , and the microcomputer responds to some given instructions, like erase, blank check, checksum, read (dumps perfectly valid HEX file that corresponds to given BIN file when converted, exactly the same data in original from chi and spare file), but it wont program. - I have been given an BIN file to work with, but either way an read HEX file wont program either.When it fails writing I have to reset the micro computer and the visual led diode clearly shows when it failed, the microcomputer simply never responds again. Depending on the file I try it always fails at the same spot.

author: stojke
author_rank: Regular Contributor
timestamp: June 30, 2019, 06:43:52 pm
content: Somebody?
Can the PIC16F1703 do PWM through a peripheral? - Page 1
Forum section: electronics / general

author: JoeP
author_rank: Contributor
timestamp: June 29, 2019, 08:36:27 pm
content: Datasheet:http://ww1.microchip.com/downloads/en/DeviceDoc/40001722C.pdfThe datasheet seems to be slightly contradictory; it has 2 CCP modules which can be configured to do PWM, but it also says it has 0 PWM modules (top of page 2). Presumably it's just not counting the CCP as PWM, and that it is perfectly capable of doing PWM without using the processor, but does anyone know for sure?Thanks.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: June 29, 2019, 08:51:15 pm
content: Read the CCP section of the datasheet.Some PICs have dedicated PWM as well as CCP. CCPs generally can do PWM

author: NorthGuy
author_rank: Super Contributor
timestamp: June 30, 2019, 01:09:34 pm
content: There are some newer PICs where CCP modules cannot do PWM - that is you cannot put CCP into PWM mode. Such PICs usually have separate PWM modules instead. I don't believe PIC16F1703 is one of them, so most likely this is a typo, but I wouldn't be 100% sure.

author: rhodges
author_rank: Frequent Contributor
timestamp: June 30, 2019, 01:49:37 pm
content: Look at page 12. It shows RC5 as CCP1, "Capture/Compare/PWM1". And RC3 is CCP2, "Capture/Compare/PWM2".It is a little confusing, as those list CCP1 and CCP2 as inputs next to RC5 and RC3, but below, the table connects CCP1 to PWM1 and CCP2 to PWM2 outputs.The PWM info starts at page 189, and it looks like any other PIC description. So I would assume, yes, the 16f1703 does have two PWM outputs available.

author: cv007
author_rank: Frequent Contributor
timestamp: June 30, 2019, 07:51:05 pm
content: Quotebecause the CCP module is not a PWM module. They are listing what modules are available and how many. They are not listing what functions those modules contain, so they don't say you have 2 pwm modules, because you don't. In a 1703 you have 2 CCP modules, and those modules have pwm capability (the P in CCP). If you want to see the difference, look at the 1704 datasheet.You have CCP1 and CCP2 (2 CCP modules) which can both output pwm to almost any pin via pps. You can also route a pwm output to multiple pins if wanted (pps). When you look at the 1704 datasheet, you will find the pwm modules also listed as available pps output functions (and probably discover pps is quite nice to have).

author: JPortici
author_rank: Super Contributor
timestamp: July 02, 2019, 09:02:22 am
content: Quote from: NorthGuy on June 30, 2019, 01:09:34 pmcan you share a partnumber?

author: NorthGuy
author_rank: Super Contributor
timestamp: July 02, 2019, 01:00:26 pm
content: Quote from: JPortici on July 02, 2019, 09:02:22 amNope. I've just looked at all the new PIC16 datasheets and haven't found any. Must be glitches in my memory
Stm32f103 not stabile data clk out - Page 1
Forum section: electronics / general

author: matise
author_rank: Contributor
timestamp: June 17, 2019, 09:53:30 am
content: Hi. Im using this f103c8 to a dds9850 and the problem is that the data and clk stream to dds is not stabile.Its Moving around so the dds is also totalt out of stability.I changed from internal to external crystal but its the same problem.I use 2Mhz freq in stm32.Anyone has an Idea for me to try here?

author: HB9EVI
author_rank: Frequent Contributor
timestamp: June 17, 2019, 02:46:42 pm
content: can you pse specify the problem more detailed. what do you mean with 'not stable'? do you have some scope screenshots?a schematic would help too...

author: Doctorandus_P
author_rank: Super Contributor
timestamp: June 22, 2019, 10:19:07 pm
content: STM32 uses a PLL derived clock, and they simply do not care about phase noise.They only care to pump up the clock frequency with the PLL to a high value, and with just enough accuracy for the CPU to be able to run reliably from it.You can try to use a crystal with a higher frequency, so the PLL has to multiply less, but if you want a low jitter clock for your 9850 then you probably need to find a better clock source.Depending on the quality and stability you need, this may become difficult.For example, a TCXO can have pretty good long term stability (0.1ppm), but adjust the output frequency in small steps when the temparature changes, and this may be totally unacceptable.Also, If you're new to this I wonder what gear you use.Are you measuring the frequency stability of the STM32 or of your gear?A few years back Dave Jones ( Owner of this forum, makes EEVblog) did a video about PLL instability in a popular Rigol Scope.Rigol responded by "fixing" it in software, which is of course not possible, but it was a partial solution which brought the jitter a bit down.
Linux, SMP, on weird MIPS system, how to check if CPU1 is working correctly - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: June 20, 2019, 10:44:08 pm
content: how would you test if cpu1 is working correctly in an Linux/SMP system?(it's a MIPS64 Linux system, with two MIPS64 CPUs)

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 20, 2019, 11:16:58 pm
content: Usetasksetto launch a single-threaded test program on the core/CPU you want to test.For instance:Code:taskset -c 0 <your executable>

author: legacy
author_rank: Super Contributor
timestamp: June 21, 2019, 10:10:55 am
content: Thanks!
STC12C5A60S2 Development Board - Software & Resources? - Page 1
Forum section: electronics / general

author: Chris56000
author_rank: Frequent Contributor
timestamp: June 21, 2019, 01:57:38 pm
content: Hi!Just another quickie one!Can anyone point me in the direction of software links, tutorial resources, etc., to use this STC Development Board I bought?Does it ONLY support the STC12C5A60S2 or will other devices work with it?Will it program this device, or should I buy a dedicated programmer?Chris Williams

author: ebclr
author_rank: Super Contributor
timestamp: June 22, 2019, 06:51:44 am
content: You need a programmer like this onehttps://www.openimpulse.com/blog/products-page/product-category/usb-programmer-stc-msp430-microcontrollers/Or this onehttps://www.dx.com/p/pcb-stc-auto-downloader-programmer-2035309#.XQ3P7ohKiw4

author: PCB.Wiz
author_rank: Super Contributor
timestamp: June 22, 2019, 08:44:58 pm
content: Quote from: Chris56000 on June 21, 2019, 01:57:38 pmSTC I think have Serial bootloaders in all their parts, so any of their pin-compatible DIP40 parts would work in that board.To pgm serially, you just need to get into the serial port, which means either a USB-UART-TTL for direct pin connect, or a USB-full RS232 is you already have RS232 level shifters on the board.Looks like your board has the DB9 + RS232 level shifters fitted.
STP1612PW05 LED driver - Page 1
Forum section: electronics / general

author: alizare368
author_rank: Regular Contributor
timestamp: June 19, 2019, 01:52:11 pm
content: HiI used these codes to run the RGB LED DRIVER(stp1612pw05), but it does not work.the PWCLK is 2M.Code:#define SPI_SCLK_LOW_TIME 200#define SPI_SCLK_HIGH_TIME 1uint16_t SPI_1(uint16_t byte_out){uint16_t byte_in =0;uint16_t bit;for(i=0;i<16;i++){//LE pin is lowHAL_GPIO_WritePin(GPIOB,GPIO_PIN_9,GPIO_PIN_RESET);for (bit = 0x8000; bit; bit >>= 1){/* Shift-out a bit to the MOSI line */HAL_GPIO_WritePin(GPIOB,GPIO_PIN_4,(byte_out & bit) ? GPIO_PIN_SET : GPIO_PIN_RESET);/* Delay for at least the peer's setup time */for(int i=0;i<SPI_SCLK_LOW_TIME;i++){}/* Pull the clock line high */HAL_GPIO_WritePin(GPIOB,GPIO_PIN_5,GPIO_PIN_SET);///* Shift-in a bit from the MISO line *///if(HAL_GPIO_ReadPin(GPIOC,GPIO_PIN_8)==1)//byte_in |= bit;///* Delay for at least the peer's hold time */for(int i=0;i<SPI_SCLK_HIGH_TIME;i++){}/* Pull the clock line low */HAL_GPIO_WritePin(GPIOB,GPIO_PIN_5,GPIO_PIN_RESET);}//LE pin is highHAL_GPIO_WritePin(GPIOB,GPIO_PIN_9,GPIO_PIN_SET);HAL_Delay(1);}//return byte_in;}while (1){SPI_1(0xffff);}
Microchip ICD4 - Flying Wire setup? - Page 1
Forum section: electronics / general

author: analognoise
author_rank: Newbie
timestamp: June 18, 2019, 10:44:32 am
content: I understand the cables must be less than ~6 inches long, but is there a reason that these things don't just come with a flying lead cable?Are they that touchy? Is it not smart enough to back off on speed if there's an issue?

author: oPossum
author_rank: Super Contributor
timestamp: June 18, 2019, 11:38:15 am
content: 8 flying leads: so may ways to get the connection wrong.8P8C (what it comes with): you would have to try hard to get it wrongLowering bit rate does not fix problems caused by edge rate.

author: NorthGuy
author_rank: Super Contributor
timestamp: June 18, 2019, 02:37:15 pm
content: Quote from: analognoise on June 18, 2019, 10:44:32 amIt'll work with much longer cable (although I haven't tried ICD4 in particular). We have a setup with pogo-pins and the wires are about a foot long (plus couple inches of PCB traces). No problem.
Help debug my ATTiny85 circuit - Page 1
Forum section: electronics / general

author: jonwil
author_rank: Contributor
timestamp: June 15, 2019, 10:08:34 am
content: I am working on a project involving an ATTiny85 MCUAttached is the schematic I have of what I am building (there is more to the project but this is just for testing part of it)These are the parts I am usingD1https://www.altronics.com.au/p/z0109-1n4004-400v-1a-silicon-diode/V1 4xAA alkalineR1https://www.jaycar.com.au/68-ohm-0-5-watt-metal-film-resistors-pack-of-8/p/RR0544L1 L2https://www.jaycar.com.au/red-3mm-led-2800mcd-round-clear/p/ZD0104Q1https://www.jaycar.com.au/2n7000-n-channel-fet/p/ZT2400R2https://www.jaycar.com.au/10k-ohm-0-5-watt-metal-film-resistors-pack-of-8/p/RR0596U1https://www.jaycar.com.au/attiny85-ic-8-pin-dip8/p/ZZ8721C1https://www.jaycar.com.au/100nf-50vdc-monolithic-capacitor/p/RC5490(for decoupling)This is the code I am using in the MCUCode:const int flashPause = 1500;// 1.5 seconds between segments// The value is in ms, so adjust as neededvoid setup(){}void loop (){for (int LEDpin=1; LEDpin <= 4; LEDpin++){digitalWrite(LEDpin, HIGH);delay(flashPause);}for (int LEDpin=1; LEDpin <= 4; LEDpin++) digitalWrite(LEDpin, LOW);delay(flashPause);for (int LEDpin=1; LEDpin <= 4; LEDpin++) digitalWrite(LEDpin, HIGH);delay(flashPause);for (int LEDpin=1; LEDpin <= 4; LEDpin++) digitalWrite(LEDpin, LOW);delay(flashPause);}Details of what I am using in the Arduino IDE are:Arduino IDE is version 1.8.9 on Windows with ATTinyCore 1.2.4 installedBoard is set to ATTiny25/45/85Chip is set to ATTiny85Clock is set to 8 MHz (internal)B.O.D. level is set to B.O.D. DisabledSave EEPROM is set to EEPROM RetainedTimer 1 Clock is set to CPULTO is set to DisabledPort is not setWhen I connect everything up and run things, it cycles through all the LEDs just fine but I only get 1.something volts on the output PB2 pin of the ATTiny85 which means the MOSFET doesn't turn on fully and I get almost no brightness on the LEDs. If I connect the gate of the MOSFET to +ve the LEDs turn on just fine at full brightness.Anyone know why I might be getting only 1.something volts on the output pin (PB2) of my MCU?

author: sleemanj
author_rank: Super Contributor
timestamp: June 15, 2019, 10:32:54 am
content: Your pin is in input mode, you are turning on/off the internal pullup. Set the pin to output mode.
MaixHub and Face Recognition AT firmware release~ - Page 1
Forum section: electronics / general

author: zepan0
author_rank: Contributor
timestamp: June 13, 2019, 08:46:25 am
content: We're pleased to announce: MaixHub beta version online!MaixHub are model/firmware zoo for Maix Boards, you can download and try AI models on it~Also, you can upload your models for share or trade, or submit your model requirement~https://www.maixhub.comWanna use face recognition without any knowledge about AI or MAIX?We released AT-like face recognition firmware for MAIX boards !Also we provide its parse lib, you can use it immediately~Try it for FREE ! Make your face product quickly!https://www.maixhub.com/index.php/index/index/detail/id/8
PCI32 or PCI64 development boards? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: June 13, 2019, 11:34:14 am
content: hi guysdo you know any PCI32 or PCI64 developemtn boards?I am lookign for something with a "bridge" between the PCI and a sort of local bus, with DMA-BUS-master capability.Let me know.p.s.I don't want to have to deal with an fpga about the PCI-bus handling.Already considered, and it requires too much effort for this project.I do really prefer a brdige chip.

author: dmendesf
author_rank: Frequent Contributor
timestamp: June 13, 2019, 11:08:44 pm
content: Once there was a company called PLX that made PCI bridges... Many aquisitions later and now they're part of Broadcom. Look at this board :https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.com%2Fulk%2Fitm%2F253642845371https://www.broadcom.com/products/pcie-switches-bridges/usb-pci/io-accelerators

author: legacy
author_rank: Super Contributor
timestamp: June 14, 2019, 09:40:42 am
content: Quote from: dmendesf on June 13, 2019, 11:08:44 pmYup, perfect! It's exactly what I am looking formay be, in the far future I will (ask someone? to) design a custom board.But having a working board as reference helps a lot, and that board is perfect!
Mico Reset - Page 1
Forum section: electronics / general

author: gogoman
author_rank: Regular Contributor
timestamp: June 07, 2019, 05:47:07 am
content: hi most micro have internal power on reset and VCC monitoring, what advantage would there be to use an external reset IC?thanks

author: ogden
author_rank: Super Contributor
timestamp: June 07, 2019, 06:53:41 am
content: Usually you are fine with built-in monitor, yet there are some cases you may need external monitor: 1) voltage ramp-up speed is too slow for MCU brownout circuit 2) MCU brownout voltage treshold shall be changed but MCU do not have means for that, like MSP430 F1/F2 series. Fun fact that AVR users rarely ask this question - because even AtTiny have programmable BOR treshold fuses.Search internet for "msp430 flash corruption" - you will see people suggesting external monitor as solutionHere's story: Msp430 n00bs sometimes immediately at the startup set internal clock from default ~1 MHz to 16MHz maximum. Thing is that BOR treshold is 0.8V and max allowed frequency at this voltage is 1MHz, for 16MHz at least 3V neededObviously "overclocked" msp430 (F1/F2 maybe other as well) may intermittently crash on power-on or even erase some code flash segment. So, if you have facepalm moment and there's no time or MCU resources to fix power-on problem in firmware by simply adding delay or coding "software BOR treshold" using ADC, you can quickly slap-in external 3.0V supervisor.

author: Dabbot
author_rank: Regular Contributor
timestamp: June 07, 2019, 07:55:28 am
content: The use of an external IC allows you to select a particular POR / BOR voltage which may not be supported by the microcontroller. You might also have other devices which need to be held in reset so your circuit can operate reliably after POR / BOR conditions.

author: David Hess
author_rank: Super Contributor
timestamp: June 08, 2019, 05:51:55 pm
content: An external reset IC can also monitor for conditions which are determined to require reset like loss of AC power or a drop at the input to the regulator which the processor POR/BOR cannot see directly in real time.

author: ogden
author_rank: Super Contributor
timestamp: June 08, 2019, 08:13:35 pm
content: Quote from: David Hess on June 08, 2019, 05:51:55 pmWell, yes. Some (dumbed down) devices may need such reset terrorUsually you would want to know source of failure. Power loss detection, logging and graceful shutdown can be implemented quite easily. All you need - properly sized bulk capacitors for MCU power supply so there is time to detect power fail (using IRQ), execute housekeeping, log/register type of failure and go into powerfail mode - wait for power restore to resume operations or POR/BOR reset to kick in.

author: David Hess
author_rank: Super Contributor
timestamp: June 08, 2019, 08:47:10 pm
content: Quote from: ogden on June 08, 2019, 08:13:35 pmAn IRQ is a much better way but not all microcontrollers and environments will support it.
Do anyone have Mitsumi MM1167 datasheet? - Page 1
Forum section: electronics / general

author: muthukural001
author_rank: Regular Contributor
timestamp: June 08, 2019, 05:00:25 pm
content: Hi,I am looking for the datasheet of Mitsumi MM1167. It is an M-net protocol controller IC. M-net proprietary interface is used by mitsubishi HVAC to talk to its fan control unit and heat pumps in HVAC.In my case, I want to develop a adapter which do RS232 to M-net conversion.For that, I have been looking there is an any IC that do the conversion.I have come across a github link, there they disussed about an IC called MM1167 which do the job.I am sure the outptuT of the IC is M-Net signals but I do not know that it has UART interface to give RS232 input from host...Even if it do not have UART, it doesn't matter.I can utilize the available to feed the data to convert it to M-Net signals.To go in deep, I need the datasheet of it.If anyone have come across, please let me know.Thanks,Muthu
EFB-REV1 - Survellance System - Page 1
Forum section: electronics / general

author: Victor_90
author_rank: Newbie
timestamp: June 11, 2019, 05:48:01 pm
content: "I would like to make a survellance system using ELB- REV4. How can I interface the following Pi Camera?https://thepihut.com/products/raspberry-pi-camera-moduleWill I need any specific drivers for this?"

author: helenaandrews1987
author_rank: Newbie
timestamp: June 12, 2019, 11:34:45 am
content: There are many ways you can interface multiple type of camera for example you can use any USB camera to interface over USB port with ELB-REV4 or you can configure multiple pins on the header P8,P9 to suit to interfaces of camera module.RegardsHelena Andrews
"Slow" external clock as reference for main DFFL clock?  - Page 1
Forum section: electronics / general

author: Deku Tree
author_rank: Contributor
timestamp: June 04, 2019, 02:46:21 pm
content: I've been getting familiar with the SAMD21 series of microcontrollers and was following along on this page:https://microchipdeveloper.com/32arm:samd21-code-gcc-clock-system-dfll48m-initIt says "The DFLL48M uses the XOSC32K source as a reference, which requires an external 32.768 kHz crystal". The DFLL48M clock is a 48Mhz CPU clock. I'm curious as to how such a fast clock can use a relatively slow external crystal oscillator as a reference? Is there some kind of pre-scaling going on in the DFLL48M that adds up oscillations, expecting a certain number per oscillation of the 32khz clock, and then corrects if that expected number is different?Any enlightenment is appreciated!

author: lollandster
author_rank: Contributor
timestamp: June 05, 2019, 12:52:31 am
content: According to the datasheet (DS40001882D, p.181 chapter 17.6.7.1.2 Closed-Loop Operation) your guess is correct.The 32kHz crystal is not necessary for 48MHz operation and may be omitted if accurate timing isn't needed.
STM32CubeID problem - Page 1
Forum section: electronics / general

author: Electrin
author_rank: Newbie
timestamp: June 04, 2019, 08:56:45 am
content: Hi everybody,I have downloaded STM32CubeIDE recently to test it and compare with Atollic Studio. If I wanted to create first project with help of Device Configuration Tool Code Generation, this fail was appeared: "Error downloading the following files: stm32cube_fw_IO_v1110.zip (Target directory already exists)"I tried to change FW installation repository and launch program as admin, however mentioned problem still stays unresolved.Does someone have an idea to fix this situation? What I do wrong?Thank you very much for your advices

author: fonak
author_rank: Contributor
timestamp: June 04, 2019, 04:58:45 pm
content: hello1. Close CubeMX2. go to the folder C: \ Users \ ....UserName....\ STM32Cube \ Repositoryand extract the zip archive manually, e.g. stm32cube_fw_f4_v1240.zip3. In the Repository folder should appear a folder with the name STM32Cube_FW_F4_V1.24.14. The same applies to other types, eg F1 F2 F4 or H7
STM32 PlatformIO: Check if USB connected - Page 1
Forum section: electronics / general

author: NiHaoMike
author_rank: Super Contributor
timestamp: May 27, 2019, 10:54:40 pm
content: In PlatformIO on STM32, how do I check if the USB is connected? By "connected", I mean when the host system it's connected to is booted and the USB link is up, not that a program has connected to the emulated serial port.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: June 04, 2019, 05:52:10 pm
content: You can use the "lsusb" command from the command line to get an overview of all devices attached to your usb ports.

author: NiHaoMike
author_rank: Super Contributor
timestamp: June 04, 2019, 06:02:09 pm
content: I mean from the firmware side, although I'm getting the idea that the USBComposite library might already have that functionality. (Documentation is not particularly good, so I have to look through the code.)
ESP8266 GET data from SLQ database - Page 1
Forum section: electronics / general

author: qwertis
author_rank: Newbie
timestamp: June 02, 2019, 04:35:00 pm
content: Hello,I would like to read data from a SQL database (strings) however I could not find a good example on the internet.The project is a led matrix ticker where people can go to a website where they can update the displayed text. The website contains of a php script that puts data in a sql database.Now I would like to let my wemos D1 (ES8266) (or Particle Photon ) to GET this data.On the internet I only found these two "tutorials" but they do not work for me. It seems that both are for local use (?). There exists a lot of tutorials for writing so i'm doubting if it is even possible.http://ice786pk.com/?p=662http://afterhoursengineering.net/blog/blog/2015/04/11/esp8266-read-and-write-data-to-a-database/I'm not that experienced with coding hardware. So If you could point me to a step by step guide that would be awesome!Thank you in advance,Mark

author: obiwanjacobi
author_rank: Super Contributor
timestamp: June 03, 2019, 05:31:46 am
content: I would consider putting a simple (REST) interface in front of it in order to simplify the code you need to write on the ESP...It could be as simple as a GET on an url that delivers you the data (ranges on the query string?).

author: kripton2035
author_rank: Super Contributor
timestamp: June 03, 2019, 05:43:55 am
content: here is an arduino example for postgresql. did not try it for now, but I'm planning to !https://github.com/ethanak/SimplePgSQL

author: qwertis
author_rank: Newbie
timestamp: June 03, 2019, 11:59:00 am
content: Could you give an example or point to a tutorial?Thank you!

author: qwertis
author_rank: Newbie
timestamp: June 03, 2019, 12:01:21 pm
content: Sadly I could not get it working, but thanks for your input.Please tell if you get it to work!

author: mskeete
author_rank: Contributor
timestamp: June 03, 2019, 12:14:50 pm
content: Quote from: qwertis on June 03, 2019, 12:01:21 pmHow far did you get?Did you write a second web page to return data in a simple format based on a query string?Error messages and or code that tried that isn't working?
Default ISR in Cypress PSoC 5LP - ARM Cortex M3 - Page 1
Forum section: electronics / general

author: thexeno
author_rank: Regular Contributor
timestamp: May 29, 2019, 08:26:53 am
content: Hi guys,I just started with the PSoC 5LP. The utility from Cypress let me use and assign any kind of interrupt fairly easily.Maybe I am not a fan of full fledged GUI approach, because I have a development style which never rely on auto-generated code, I guess I have to change now.So the problem is that I would like to assign all the unused IVT entries to my handler for unused ISR. I found my self a bit in difficulties for two reasons:1. I am new to ARM architectures, so I would like to know what is the good approach when dealing with custom default ISR2. I am not confident in manually changing the table, as there is a lot of autogenerated codeSo I asked to Cypress forum, but I gave up as I got answers like the fact that if I don't use the interrupt then it never fires - or the default ISR (which is an infinite loop). This does not smell good to me.Is anyone else who ever tried to re-assign the default ISR in the IVT of an ARM? Is this really absurd what I am trying to do?Thanks to all!

author: Brutte
author_rank: Frequent Contributor
timestamp: May 29, 2019, 09:28:55 am
content: Quote from: thexeno on May 29, 2019, 08:26:53 amI cannot help you with Cypress IDE.Finding a default ISR is quite easy when you look at the source code (GCC).But I have already commented the IMHO futile effort in mastering wizards.Wizarding works only when you do not need to ask questions (when you are a professionalist that can already do the job not looking at the screen). If you are a noob and you hit any problem - you arewith no clue what went wrong.My solution:either use wizarding but limit yourself to "blinking an LED" (no customization)or do it properly by using a wizard just as a reference and write/review the code with full understanding what is going on there.

author: SomeElectronicsEngineer
author_rank: Newbie
timestamp: May 29, 2019, 10:04:09 am
content: See cm3start.c:* define CY_BOOT_INT_DEFAULT_HANDLER_EXCEPTION_ENTRY_CALLBACK in cyapicallbacks.h* declare CyBoot_IntDefaultHandler_Exception_EntryCallback in cyapicallbacks.h* implement CyBoot_IntDefaultHandler_Exception_EntryCallback wherever you like.

author: thexeno
author_rank: Regular Contributor
timestamp: June 03, 2019, 08:50:00 am
content: Thanks to all.Quote from: SomeElectronicsEngineer on May 29, 2019, 10:04:09 amThat was what I wildly guessed, but I was not sure if was conflicting with the GUI part. Is working as I needed. Thank you!
How booting sequence works ?. - Page 1
Forum section: electronics / general

author: muthukural001
author_rank: Regular Contributor
timestamp: May 30, 2019, 12:20:57 pm
content: Hello All,I have a doubt on SoC (don't have datasheet) booting...In the schematic I have, there is an SPI EEPROM that is connected to SOC and a SPI-USB module which is connecting SoC 's SPI to PC to load an image file...So, when SOC powers up, the followings will happen,1. Boot ROM code in the SoC will look for a booting media2. Boot configuration pins are selected so that booting media is SPI...3. From the PC, the image file (Application code) will be loaded in to EEPROM.Here is my doubts,When I next power up the SoC, it will go to SPI mode to receive the image file but this time I might want to boot from the EEPROM as it has the image file...To boot from the EEPROM, I need to change the boot configuration pins so that it will boot from the EEPROM ?...I am little confused here...Please help me to understand this...Thanks,Muthu

author: Rerouter
author_rank: Super Contributor
timestamp: May 30, 2019, 12:37:48 pm
content: That sounds about right, the pin strip to program the memory lets you load a file, you then need to remove that pin strip to let the device boot from the memory
1000base-SX out of an A53 board - Page 1
Forum section: electronics / general

author: Harvs
author_rank: Super Contributor
timestamp: May 29, 2019, 10:13:12 pm
content: I'm developing a low volume design with some form of ARM board, which not wedded to anything specific yet, but probably something like the Friendly Elec Smart6818https://www.friendlyarm.com/index.php?route=product/product&path=60&product_id=227.Ideally I'd like to take the Ethernet out via an 1000base-SX SFP module. It'll simplify a bunch of things not bringing copper cables out, and standard multimode fiber is easy to find installers who can work with it.After a bunch of reading around, which there's very few application note for, I believe an arrangement like the following is the simplest bet:A53 ARM Board with on-board GiE Phy -> GiE Mag transformer -> VSC8221 phy -> Cisco GLC-SX-MM Compatible 1000base-SX SFP moduleIt doesn't seem to difficult and on the surface doesn't look too fraught with problems, but I wondered if someone had done it before and had any advice?Thanks

author: ajb
author_rank: Super Contributor
timestamp: May 29, 2019, 10:50:04 pm
content: As long as that PHY will work as a standalone media converter (which it looks like it will from the datasheet, but I haven't looked in depth), that sounds like a good way to go. You should be able to skip the magnetics and use capacitive coupling between the copper PHYs instead. There are a number of app notes for that. Another option would be to use a switch that has an SGMII interface, which would allow you to have a bonus copper port or two as well. Maybe something like the VSC7511. Or if you have access to the GMII/RGMII pins, maybe the VSC8552 would work?

author: Harvs
author_rank: Super Contributor
timestamp: May 30, 2019, 10:33:20 am
content: Thanks for the reply, and info.Unfortunately practically all of the more decent compute modules with GiE SoC support have an RTL8211e phy already hooked up on board and without the RGMII interface exposed. I think the Samsung Artik use to, but they are no longer.The switch idea isn't a bad one, I'll have to if there's room.
PSoC4 support for libopencm3 - Page 1
Forum section: electronics / general

author: GromBeestje
author_rank: Frequent Contributor
timestamp: May 30, 2019, 12:11:54 pm
content: Hi,I've started an attempt to implement Cypress PSoC4 support for libopencm3. Thus implementing drivers for the peripherals present in this microcontroller based on the Technical Reference Manuals provided by Cypress.For now, I keep a blog about this project onhttps://www.blaatschaap.be(I might move it to a different domain later)
ATECC508A counter weirdness - Page 1
Forum section: electronics / general

author: KE5FX
author_rank: Super Contributor
timestamp: May 29, 2019, 07:49:50 am
content: Anyone have any experience with the ATECC508A? I'm finding that I can execute any opcode it supports (or at least the ones I need) except for 0x24, the 'Counter' command. That one always returns 0x0F ("Execution error") instead of the current counter value.
Read protection NEC processor workaround  - Page 1
Forum section: electronics / general

author: window69
author_rank: Newbie
timestamp: May 24, 2019, 08:29:20 pm
content: Hello,I have been asked to help with a repair for a battery pack from a Audi q8 hybrid.After a small impact, airbags ware deployed.The problem now is, that the battery will not be activated because it stays in crash mode.It seems that there is a workaround for this problem.By reprogramming the processor in the battery management system.The processor is a NEC UPD76F0192GC.I can't find a datasheet on this type, probably because NEC has become RENESAS.Is seems that this processor has been read protracted.To get rid of the protection, is seems that the boot memory needs to be reprogrammed.To read the data out of the processor.I can use some help to do this.The questions I have right now:Where can I find e datasheet for this processor.Which programmer do I need to get communication.And a lot of info and inspiration.There are people that has done this.So it is not impossible.The question is how.I hope you can help me with this.See attachment.

author: Dabbot
author_rank: Regular Contributor
timestamp: May 25, 2019, 10:22:08 am
content: Have a look athttps://www.eevblog.com/forum/microcontrollers/renesas-nec-programmer/But I don't like your chances of defeating the read protection that may be present on the chip.

author: amyk
author_rank: Super Contributor
timestamp: May 25, 2019, 06:48:37 pm
content: Their part numbers were never really clear, apparently this is part of the "V850" series.

author: ejeffrey
author_rank: Super Contributor
timestamp: May 25, 2019, 09:01:52 pm
content: Ask Audi how to verify that the battery is roadworthy and take it out of crash mode?

author: window69
author_rank: Newbie
timestamp: May 27, 2019, 07:17:39 pm
content: \$\Omega\$Audi will not do that!You have to by a brand new battery pack for about €6000.Here is a link to e site where people tried to do this.https://mhhauto.com/Thread-Q5-Hybrid-MY2013-Hybrid-Battery-Crash-Shut-Down-Activated