hybridfree/eevblog-posts huggingface dataset:
X-Post from Power: Micros for digital SMPS control - TI, NXP (Freescale) opinion - Page 1
Forum section: electronics / general

author: vectorotter
author_rank: Contributor
timestamp: January 03, 2021, 02:38:50 pm
content: Duplicate of:https://www.eevblog.com/forum/renewable-energy/micros-for-digital-smps-control-ti-nxp-(freescale)-opinions/Apologies for the X-post but think this might be a more appropriate place to ask.
redirect (CDC_Transmit_FS) to (printf) - Page 1
Forum section: electronics / general

author: tariq
author_rank: Contributor
timestamp: December 26, 2020, 04:49:17 pm
content: hiI'm using stm32 f103RBT8 in keil 5 i'm using usb device to transmit data by using CDC_Transmit_FS command.but i want to use printf command. I dont know how to redirect it to printf.is there any way?Thank you.

author: bugnate
author_rank: Regular Contributor
timestamp: December 27, 2020, 06:51:56 am
content: If you are having trouble finding info on the web, search for how to redirect UART to printf() (heaps of examples and guides on that) and realize that your USB case is almost the same, i.e., swap HAL_UART_Transmit() for your CDC_Transmit_FS(). The semantics are similar enough. Unless you know what you are doing, I would recommend that you also add code to busy-wait until the USB transfer finishes.You want to be reading things like this:https://electronics.stackexchange.com/questions/206113/how-do-i-use-the-printf-function-on-stm32More generally speaking, you need to wire up _write() (as in the above example) or for extra credit, roll your own usb_cdc_printf() or whatever.

author: nctnico
author_rank: Super Contributor
timestamp: December 27, 2020, 12:33:43 pm
content: In addition to what bugnate wrote you'll also need buffering (a FIFO) to collect UART data and send it over USB in as large as possible chunks. If the FIFO is full then simply discard the data. It is likely the USB connection has been lost or isn't serviced.

author: bson
author_rank: Unknown
timestamp: December 31, 2020, 09:15:02 pm
content: Quote from: nctnico on December 27, 2020, 12:33:43 pmWith the caveat that with USB the host will keep polling the device either for data or for control indicating data is available. The buffer needs to be large enough to hold data between the consequent poll-driven reads, but when the host reads (data in transfer) the device should really return what's available.
Hands-On RTOS with Microcontrollers OFFER - Page 1
Forum section: electronics / general

author: NivagSwerdna
author_rank: Super Contributor
timestamp: December 30, 2020, 10:30:37 am
content: Chris in the AmpHour audio blog mentioned the book "Hands-On RTOS with Microcontrollers" as a primer for FreeRTOSFYI there appears to be a special where you can get the eBook for $5 currently... Bargain!https://www.packtpub.com/product/hands-on-rtos-with-microcontrollers/9781838826734The companion development board for the Book is Nucleo-f767zihttps://uk.farnell.com/stmicroelectronics/nucleo-f767zi/dev-board-nucleo-32-mcu/dp/2546569?gclid=CjwKCAiA57D_BRAZEiwAZcfCxaixRVO4F7irf2skR1adFS7Uw9XtrwM7PY2CijWNC2Tl3PFVlOGVABoC44sQAvD_BwE&mckv=sby1sAhvy_dc|pcrid|378026841994|kword|nucleo-f767zi|match|p|plid||slid||product||pgrid|54829234062|ptaid|kwd-337993967884|&CMP=KNC-GUK-GEN-SKU-MDC-Test111Considering the uP on this board that is also a bargain price.I've been working through the examples as I have traditionally more of a schedule it yourself sort of guy up to now but FreeRTOS is fun.STM32CubeMX is a bit of a pain when trying to use FreeRTOS natively as it tries to hide the details behind CMIS... but I foundhttps://jaywang.info/using-native-freertos-in-stm32-microcontrollers/which has a nice description of how to get a simple FreeRTOS project working without the CMIS calls.It kept me entertained over Christmas anyway... have fun!

author: rsjsouza
author_rank: Super Contributor
timestamp: December 30, 2020, 11:13:19 pm
content: It is amazing how low is the price of the ticket to start development on a new platform... When I started, the only free tools were either terribly bad or 30-day limited, with thousands of dollars spent on ICE or Debug Probes, development kits and IDE licenses.

author: NivagSwerdna
author_rank: Super Contributor
timestamp: December 31, 2020, 10:29:34 am
content: Indeed. The book above goes through the SEGGER-J tools which are free for non-commercial and can run at zero extra charge on the dev board... Ozone for performance analysis and System View for real-time recording and visualization... really quite impressive.(My designs will use more humble hardware but it's fun to play with)
Fontx File - Page 1
Forum section: electronics / general

author: rckanta
author_rank: Contributor
timestamp: December 15, 2020, 05:17:03 am
content: How to convert TTF file to Fontx File?I want to convert Times New Roman TTF to Fontx file.

author: UnHappy
author_rank: Newbie
timestamp: December 15, 2020, 05:24:36 am
content: Google is your friendhttps://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjBgeGbn8_tAhXL7nMBHdihDIAQFjAKegQIARAC&url=https%3A%2F%2Fanyconv.com%2Fttf-to-otf-converter%2F&usg=AOvVaw2MtHquBUamUB73q-x-9u9b

author: MIS42N
author_rank: Frequent Contributor
timestamp: December 28, 2020, 09:23:50 am
content: What is a Fontx File? I've heard of True Type (.ttf) and Open Type (.otf) but not this one.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: December 28, 2020, 12:41:41 pm
content: Seems to be an archaic 2-color fixed width bitmap format,http://elm-chan.org/docs/dosv/fontx_e.htmleasy enough to use on an MCU, sure.There cannot exist a trivial conversion from TTF, a variable width vector format. Or rather, there could, but it'll likely produce ugly results. Best bet is probably writing out all the characters you're interested in, adjusting them for spacing and hinting, and using a bitmap font packing tool, or just writing your own as it's simple enough.Tim

author: MIS42N
author_rank: Frequent Contributor
timestamp: December 29, 2020, 11:13:46 am
content: A possible method is to type characters into a graphics program set to 2 colours and save the data as bmp. The bmp file has the characters as bit maps, can write a program to rearrange it to fontx format. I tried it and got as far as writing the .bmp file. Type 1 letter per line and crop it to the desired pixel width so it is a column of characters. Looks like it will work.However, Times New Roman is designed as a proportional font, it looks like Fontx expects a monospaced font. So it won't look right. Plenty of serif monospace fonts to choose from.
STM8S sourcing - Page 1
Forum section: electronics / general

author: Tif
author_rank: Contributor
timestamp: January 02, 2021, 09:20:17 pm
content: Hi and happy new year to all!I am currently looking for a very cheap uC (only need about 7 IO and 1 ADC) and came across the STM8S003F3P6 which seems to be already widely used.However it seems to be out of stock everywhere and when I saw that mouser had more than 400000 on order, I was wondering how is it possible to have a global out of stock condition on such a mainstream component ?Also how can we be sure to select a component that won't suffer a similar fate ?

author: tszaboo
author_rank: Super Contributor
timestamp: January 02, 2021, 10:32:27 pm
content: There:https://octopart.com/search?q=STM8S003F3P6&currency=USD&specs=0Stock is low, ST seems to have some issues with their lead times.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: January 05, 2021, 02:37:19 am
content: Quote from: Tif on January 02, 2021, 09:20:17 pmThe STM8S003F3P6 is in TSSOP20, and has been widely cloned on pinouts, so there are many cheaper, not single sourced, 8051 cored '003' variants out there. (and even a few ARM ones too)If you want to avoid single source worries, pick a couple of those 8051 variants, in the '003' pinout.Nuvoton also have MS51Fxx/ML51Fxx parts, (as well as N76E003) in TSSOP20, with the '003' pinout.

author: ebclr
author_rank: Super Contributor
timestamp: January 05, 2021, 11:07:07 am
content: In unitshttps://pt.aliexpress.com/item/1005001341501051.html?spm=a2g0o.productlist.0.0.21764aa0PiRbdc&algo_pvid=847727cf-292a-4c12-bdcf-4776428a5b8b&algo_expid=847727cf-292a-4c12-bdcf-4776428a5b8b-0&btsid=0b0a555f16098447079548908e44d2&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_In thousandshttps://item.taobao.com/item.htm?id=582251977069&ali_refid=a3_430620_1006:1186250172:N:e75Y1thFHO99GaGH25O4dxV4HoaLO%2FYD:236bdbcd3719a70752598bf2d751cf6f&ali_trackid=1_236bdbcd3719a70752598bf2d751cf6f&spm=a230r.1.14.13#detailDid you consider CH552, is very cheap and as USB support

author: rt
author_rank: Regular Contributor
timestamp: January 05, 2021, 06:12:56 pm
content: It seems to be in stock in RShttps://fr.rs-online.com/web/p/microcontroleurs/7931392/?cm_mmc=aff2-_-ie-_-octopart-_-7931392ST Micro have been having strikes at some of their French factories since November so this may be related.https://www.electronicsweekly.com/news/business/unions-call-strike-st-2020-11/We had an ST MCU part go 4 month lead time since early November and have had to do a redesign for an upcoming order as a result.rt
Looking for guide to Zephyr OS for embedded engineer with no Linux experience - Page 1
Forum section: electronics / general

author: cbc02009
author_rank: Regular Contributor
timestamp: December 22, 2020, 03:20:45 pm
content: Hello,I thought this was mentioned on the Amp Hour a couple weeks ago, but I can't seem to find it anywhere and google is giving me nothing. Hopefully someone here can help me find something.I'm an embedded engineer with a lot of experience writing C and some experience with RTOS (basically just FreeRTOS). I would like to start learning how to write code for Zephyr OS, but I have no experience whatsoever writing C code for Linux. The Zephyr documentation is very good, and it's really easy to get the build system set up, but it almost seems like it's written for someone with Linux experience transitioning to writing embedded code, and not the other way around. I need to learn more about Kconfig files and device trees, but I'm not even sure where to start.Can anyone recommend me books or guides that might help me learn Zephyr? Is it too new for any books to be written for it yet?

author: mac.6
author_rank: Regular Contributor
timestamp: December 26, 2020, 10:45:55 am
content: There is mostly no relation with Linux. They did use Kconfig herited from linux kernel build system but they use CMake now.They also had a bad habit to rewrote third party code to redefine basic types which infuriates me, but I think they did stop doing this.Zephyr is more a full framework than a simple bare RTOS like FreeRTOS is. You need to check if the platform you use is really supported or not (ie, not only a couple of drivers), otherwise you may need a lot of work to have a real application running.
S32K1 CAN peripheral driver + J1939 CAN Stack - Page 1
Forum section: electronics / general

author: rvalente
author_rank: Frequent Contributor
timestamp: December 16, 2020, 02:14:22 pm
content: Hello Mates,would you suggest me a CAN driver for the S32K and a J1939 CAN stack?I've got a quote from Simma Software, the cost is around USD 11K, I'd like to look for other optionsGreetings

author: Jeroen3
author_rank: Super Contributor
timestamp: December 16, 2020, 02:42:47 pm
content: Doesn seem too expensive.. what's wrong with it?

author: rvalente
author_rank: Frequent Contributor
timestamp: December 16, 2020, 04:50:43 pm
content: Agreed, would not seem expensive if the USB x BRL exchange rate was lower, its R$5.13 now, them it gets expensive.Them I just looking for alternatives

author: jnz
author_rank: Frequent Contributor
timestamp: January 06, 2021, 12:15:24 am
content: I can pretty much warn you against Simma Software.It's two guys Jake and Patrick iirc. I'm not saying the software doesn't do what it is supposed to, but from experience their CAN drivers are extremely basic. You can do it yourself, or at least someone on UpWork could do it in at worst 1/10th the cost ($5k for a CAN driver iirc). There is nothing special, no complex buffering, or retries or detecting errors beyond the most basic. It's written "cleanly" enough, but very very generic. Not at all worth the money. They're tell you that you need their CAN driver to use their other layers, that's bullshit. Their CAN driver just takes in a pointer and dlc, and etc, their other layers are designed to just call send and receive functions, and use them, but not even in a clever pointer to a function way like networkTransport.send(), but generic can_transmit() and you just make sure you have that function.As to the higher level stuff like J1939. I'm 10000% certain you can look on Github and find something just as good. I was looking to them for some SAE-J specs and ended up learning a lot more writing my own than paying them an ungodly amount.Nothing I've seen from them is complex enough to warrant the cost. It all works, but they go no extra steps. You'll find no smart configurations, or memory management, no RTOS hooks, just plain jane code. Seriously go find a Pakistani or Indian group on Upwork, they'll ask for $20/hr and give you something they basically already wrote. You'll then probably get something you actually want. Or get the SAE papers and write it yourself and really know what it's doing.

author: rvalente
author_rank: Frequent Contributor
timestamp: January 06, 2021, 02:17:35 pm
content: Hello JNZ, tks by your reply.I've pmed youHave you ever usedhttps://www.elektrobit.com/products? Guys from NXP advised me about them
Unable to get waveform when using Simulator-Logic Analyzer MPLabXIDE V5.4 - Page 1
Forum section: electronics / general

author: abrarbaig
author_rank: Contributor
timestamp: November 22, 2020, 05:30:56 am
content: Hello. I am using MPLAB XIDE V 5.4, to using XC-32 compiler for PIC D/IO. I am using its simulator-Logic Analyzer to view output (Digital I/O). I was able to get the output in the previous version 5.05. Any idea how to get the output?

author: lluchiari
author_rank: Contributor
timestamp: December 17, 2020, 08:07:43 pm
content: I'm having the same problem here. I guess this new versions changes (from 5.35 ahead) are causing all those troubles (migrating to x64 and change java platform).I tried to debug some problems, but it's something on source code. One interesting problem I had was with XC-8/xc-16 new versions with MpLAB. I dont know why I couldn't reconfigure my project, nor compile. Now I'm using MPLAB IDE v5.40 and XC8/16 version 2.10. The only problem is the simulator itself.

author: lluchiari
author_rank: Contributor
timestamp: December 17, 2020, 09:04:53 pm
content: There's a new version...5.45, but still have problem.I re-intalled 5.20 and is working!
ESP32 / LED1202 - Weird SDC I2C waveform shape - Page 1
Forum section: electronics / general

author: TAMHAN
author_rank: Frequent Contributor
timestamp: November 25, 2020, 07:31:35 am
content: Hello Folks,banging my head for quite some time (aka all night) over this issue and wanted to ask for some help.I have a system where one to four LED1202 are driven by one common ESP32. On my PCB, sadly, the ESP32 cannot communicate with the LED1202, it always returns ESP_FAIL. On the oscilloscope, I see these waveforms attached.Strangely, I also have an ES8388 attached to the same bus. He has no problems whatsoever with responding reliably.Did anyone of you see these kinds of phallic shapes on SDA (chan one) before? And please do not worry about the ticks, they are caused by the LED lighting in the lab.Tam

author: Heartbreaker
author_rank: Unknown
timestamp: November 29, 2020, 01:17:21 pm
content: It looks like the ack. bits are messed up by a bus conflict. Check that the ESP32 tri-states the bus during this phase.

author: TAMHAN
author_rank: Frequent Contributor
timestamp: December 26, 2020, 08:24:59 am
content: Hello,actually, it was even weirder. IBF Target miscalculated the ground plane, so the LED1202 did not have proper grounding.New spin, board works.But still, big thanks for talking back!
NXP S32DS + Processor Expert Tips and tricks - Page 1
Forum section: electronics / general

author: rvalente
author_rank: Frequent Contributor
timestamp: December 15, 2020, 03:14:52 pm
content: Hello Mates,i've got my inspiration fromhttps://www.eevblog.com/forum/microcontrollers/stm32cubeide-cubemx-workflow-tips-and-tricks/Anyone using S32 Design Studio for S32K micros from NXP/Freescale?I'm just getting started, please, share you experiences
SAMD10: changing DMA trigger souce in code. - Page 1
Forum section: electronics / general

author: Refrigerator
author_rank: Super Contributor
timestamp: December 11, 2020, 04:10:54 pm
content: My MCU has 6 DMA channels but i need 7 so eventually i have to reconfigure one of the DMA channels.First, all of my DMA channels are configured for UART on all three SERCOM RT/TX triggers but later in the code i need to reconfigure one of the DMA channels to trigger off TCC0 overflow.So far i've been unsuccessful in doing so. I'm using start.atmel to setup my DMA channels at first, and later reconfigure (or at least try to) the DMA channels by writing to the registers.Code:void config_dma_channel_4(void){struct _dma_resource *dma_res;_dma_set_source_address(4, (void *)LED_TX_buf);_dma_set_destination_address(4, (void *)&(TCC0->CCB.reg));_dma_set_data_amount(4, (uint32_t)450);_dma_get_channel_resource(&dma_res, 4);/* Set application callback to handle the DMA CH-4 transfer done */dma_res->dma_cb.transfer_done = dmac_channel_4_callback;_dma_set_irq_state(4, DMA_TRANSFER_COMPLETE_CB, true);// redefineDMAC->CHID.reg = 4;DMAC->CHCTRLB.reg |= DMAC_CHCTRLB_TRIGSRC(TCC0_DMAC_ID_OVF);//DMAC->CHCTRLB.bit.TRIGSRC = 0b111;}// end of config_dma_channel_4The above code is just a test i whipped up when i noticed that reconfiguring the DMA wasn't working on my main code. So i made a new, cleaner project to experiment.DMA is originally set up to trigger on SERCOM TX and the goal is to change it to TCC0 overflow.I do it in the same DMA initialization function because this code here is only for test purposes.First i select the channel:Code:DMAC->CHID.reg = 4;Then i write to the trigger source register:Code:DMAC->CHCTRLB.reg |= DMAC_CHCTRLB_TRIGSRC(TCC0_DMAC_ID_OVF);By OR-ing i mask the bits that were previously there, TCC0 is 0b111 and all SERCOM triggers are less than that so OR-ing should work.But it doesn't work.Another option that i have not yet tried is writing to the bit:Code:DMAC->CHCTRLB.bit.TRIGSRC = 0b111;Commented out because i used atmel studio to autocomplete for this post.Also i assume 0b111 can also be replaced with the TCC0_DMAC_ID_OVF macro.Am i missing something ? Would be great to know because i'm running out of time and this has been driving me up the wall.

author: ataradov
author_rank: Super Contributor
timestamp: December 11, 2020, 05:20:58 pm
content: EitherCode:DMAC->CHCTRLB.bit.TRIGSRC = TCC0_DMAC_ID_OVF;orCode:DMAC->CHCTRLB.reg &= ~DMAC_CHCTRLB_TRIGSRC_Msk; // Lookup in the header file how exactly it is calledDMAC->CHCTRLB.reg |= DMAC_CHCTRLB_TRIGSRC(TCC0_DMAC_ID_OVF);

author: Refrigerator
author_rank: Super Contributor
timestamp: December 12, 2020, 01:48:15 am
content: Finally got my project to work, too bad i ran out of time to expand to full functionality.For now it will work for demo purposes and i have just finished the full code but unfortunately don't have time to test/debug it.Anyways i'm happy it works at all, i was preparing for the worst case scenario.
PIC32MX795F512L Generate waveform using DMA and SPI DAC - Page 1
Forum section: electronics / general

author: nick39
author_rank: Contributor
timestamp: December 06, 2020, 01:33:18 pm
content: Hi guys!I'm new in the forum and also to PIC32. I need to generate a waveform using DMA.Are there any examples I could use?I haven't been able to find any. I'm not sure if I could do this using Harmony or if I have to code everything from scratch.It doesn't seem to be much documentation about Harmony and registring to the Microchip Forum is impossible...Thanks!

author: JPortici
author_rank: Super Contributor
timestamp: December 07, 2020, 06:25:05 am
content: the problem with SPI is that you have to generate the CS signal as well (and maybe also the LDAC pulse if you want the output to update at a specific, fixed rate)I did it in the past (not with this MX but i don't recall anything that couldn't make it work), not sure if it's there is a better approach, but...I used two CCP modules, SPI and DMA.- CCP module 1 generate a small pulse for LDAC- CCP module 2 generate a wider pulse, long enough that the SPI frame is contained in it- DMA to start an SPI transfer with CCP module 2 as a triggerI had also to be "clever", assigning different values to the CCP module timers so that they started out of phase between each other (so pulse 1 active would be while pulse 2 inactive) or if both CCP are run by the same timer, use output compare mode instead of PWM to achieve the same thingSince you are new to PIC32, have you tried doing it the easy way first? (manual update, so you can confirm that connections are good)

author: nick39
author_rank: Contributor
timestamp: December 09, 2020, 02:28:26 pm
content: Thanks for your reply JPortici, I thought that the CS signal was always generated by hardware every time you write to SPI.I found this websitehttps://people.ece.cornell.edu/land/courses/ece4760/PIC32/index_SPI.htmlthat says if you use Framed SPI it will generate the CS signal. Using this method there is no need to implement an ISR, am I right?

author: fchk
author_rank: Frequent Contributor
timestamp: December 10, 2020, 07:49:11 am
content: Framed SPI is another word for TDM, of which I2S is a special type.Standard SPI uses CS to mark enable transferring a certain number of bytes.I2S doesn't have CS since it transmits continuously. It uses a frame or word clock to mark the start of a frame that contains a number of bytes representing a single or a pair of audio samples.So, don't look for SPI DACs. Look for I2S DACs.fchk
Cloning 68HC705B16; pin #36 error. - Page 1
Forum section: electronics / general

author: Rat_Patrol
author_rank: Frequent Contributor
timestamp: December 18, 2020, 04:40:18 pm
content: Trying to clone said micro, and my Dataman programmer gives me an insertion error of bad contact on pin #36. Tried 2 different fully functioning examples, both same issues. PLCC52 package.I put in a blank, reads empty memory.Am I missing something here? Am I running into data protection?
PICkitPlus News - PIC18FxxQ43 added, chips added/revised & two Beta Programs - Page 1
Forum section: electronics / general

author: Anobium
author_rank: Regular Contributor
timestamp: December 03, 2020, 10:26:04 am
content: An update on PICKitPlus Software at December 2020.PICKitPlus SoftwareWe have added PIC18FxxQ43 support within PICKitPlus Software.The software is a major upgrade to support the PIC18FxxQ43s. This new software also has other new and updated chips within the parts database. We have spent many, many hours to build and test the new release.The software updates are to the Windows: PICKitPlus GUI applications, PICKitCommandLine, PKeasy and PKAutoWatch; Linux PKCMD-LX; Pi PKCMD-PII published the PIC18FxxQ43 project on GitHub so you can understand the work we have completed. See the Q43 GitHub project report if you are interested in some of the details of our work.https://github.com/Anobium/PICKitPlusPlease use our website to get this new software.https://www.pickitplus.co.ukPICKitPlus for LinuxWe have released PICKitPlus for Linux recently. We had an extensive Beta project and we thank all the helped us get the software completed. The software is now available via our website shown above.PICKitPlus for PiWe are announcing aBETA program for the Raspberry Pi. We got funding to proceed to develop the Raspberry Pi solution. The software is a command line utility and will support the same parts as the other operating systems. We are very pleased with the software.If you would like to join the program for the PICKitPlus for the Raspberry Pi - please contact me via our email address shown on here:https://www.pickitplus.co.uk/Typesetter/index.php/About-UsPICKitPlus Gang ProgrammerWe are announcing aBETA program for the new release of PICKitPlus for Gang Programming. We have further developed the software to enable you to gang program using a PICKit2, PICKit3 or specific Xpress Boards. The user interface is very simply, you can create projects, you can create aliases to the programmers, support for up to 8 programmers has been tested, TCP/IP enabled for automation integration and extensive logging.If you would like to join the program for the PICKitPlus Gang Programmer - please contact me via our email address shown on here:https://www.pickitplus.co.uk/Typesetter/index.php/About-UsThank you,Evan
About infineon controller mcu program format is xxx.cod - Page 1
Forum section: electronics / general

author: jack-c
author_rank: Contributor
timestamp: December 02, 2020, 03:28:43 am
content: When I was burning a program for infineoon xc2267, I encountered a file in the .cod format, which is not common.hex or .bin file So what software should this .cod file open with or how should it be converted to .hex?

author: ataradov
author_rank: Super Contributor
timestamp: December 02, 2020, 03:47:30 am
content: According to some quick googling and a random AN from Infineon, COD is not a programming file, but some info from the linker. I bet it is a text file, so just open it in the text editor and see what it contains,Also, if you have an example of a file like that, attach it here.

author: jack-c
author_rank: Contributor
timestamp: December 03, 2020, 03:19:50 am
content: Hello! I tried disassembly through IDA software to be able to open the file, I kind of believe this is actually a binary bin file just modified the suffix name

author: ataradov
author_rank: Super Contributor
timestamp: December 03, 2020, 05:28:39 am
content: It is not a text file, but this also does not look like a real firmware.
Measure battery voltage without using I/O (ATTINY814) - Page 1
Forum section: electronics / general

author: Leo86
author_rank: Contributor
timestamp: December 01, 2020, 07:28:51 pm
content: Hi,I have a aplication that need measure a battery level. I'm follow aplication note AN2447 and i made it work using VREF 1.1V, but i need to change VREF from 1.1V to 2.5V. Changing VREF for 2.5V, should it work the same way?

author: wraper
author_rank: Unknown
timestamp: December 01, 2020, 07:42:28 pm
content: I don't see any obvious limitation in the datasheet. What forbids to change vref and see if it works? Dunno why you NEED to change it though. Even if you need different VREF for something else, nothing forbids to change its voltage on the fly.

author: cv007
author_rank: Frequent Contributor
timestamp: December 01, 2020, 11:53:13 pm
content: The reason (I presume) they use 1v1 is so you could run the mcu at its lowest vcc value of 1.8v and still have something. Switch to the 2v5 ref and you cannot measure anything < 2.5v (if you only use 2v5 or course).2v5 is better than 1v1, 4v3 is better than 2v5, but in any case it becomes useless if your Vcc gets down to those levels so you choose something you know will work, but there is no law stating you cannot change the Vref adc value (from the Vref peripheral) at any time. If your adc result gets too close to the limit of the adc, drop to a lower bg vref and try again.Use whatever you want, whenever you want.Not quite sure why they use a float in their example as anything less than a tenth/hundredth of volt is probably not too meaningful (which is another reason 1v1 would be used- it works good enough for its intended job). Just multiply *100ul before you divide the adc result to get volts*100 (330 = 3.30v). To use 2v5 instead of 1v1, just change the formula to use 2.5 instead of 1.1.

author: Leo86
author_rank: Contributor
timestamp: December 02, 2020, 02:32:25 am
content: Thaks folks!
VID and PID for MPLab Snap? - Page 1
Forum section: electronics / general

author: wholder
author_rank: Regular Contributor
timestamp: December 05, 2020, 11:16:22 pm
content: Can anyone tell me the USB vendor id (probably 0x03EB) and the product Id for Microchip's MPLab Snap?Wayne

author: oPossum
author_rank: Super Contributor
timestamp: December 05, 2020, 11:46:42 pm
content: VID 04D8PID 9018

author: wholder
author_rank: Regular Contributor
timestamp: December 06, 2020, 12:06:22 am
content: Thanks. Can I can ask when you purchased your Snap and have you updated it's firmware recently? Microchip seems to have updated the PID and VID in the past year, or so.Wayne

author: oPossum
author_rank: Super Contributor
timestamp: December 06, 2020, 12:16:33 am
content: Purchased from Microchip Direct on March 25 2020. I haven't used it yet so the firmware is what it shipped with. I have an older one but it is currently hiding somewhere.ICD 4 with current firmware is PID 04D8 VID 9015PICkit 4 with current firmware is PID 04D8 VID 9012

author: wholder
author_rank: Regular Contributor
timestamp: December 06, 2020, 01:19:36 am
content: Interesting...My PIckit4, which I purchased a few months ago has VID = 0x03EB, PID = 0x2177. But, VID 0x03EB is for Atmel and 0x04D8 is for Microchip.I also have an Atmel ICE, which I recently updated using MPLAB and it has VID = 0x03EB, PID = 0x2141Wayne

author: oPossum
author_rank: Super Contributor
timestamp: December 06, 2020, 01:27:07 am
content: I found my other SNAP. Last used with an ATTINY40 about a year ago.VID 03EBPID 2180Interesting.

author: cv007
author_rank: Frequent Contributor
timestamp: December 06, 2020, 03:03:53 am
content: I have 3 of them, one in use, one which has not been used in a while, and another new one.Currently being used for a mega4809-0x03eb:2180iProduct - MPLAB Snap ICD CMSIS-DAPThe others I just plugged in (1 previously used for pic32mm, the other never been used)-0x4d8:9018iProduct -MPLAB Snap ICDI plugged one of these in and programmed a pic32mm, the ide did a firmware upgrade but the vid/pid did not change. These also show up as having just a vendor specific class and some bulk endpoints. The CMSIS-DAP version uses hid and also has CDC-ACM.The one currently in use. I think was used to program a samD10 at one point, and may be the reason for the vid/pid change and the name change. It is happy programming my mega4809, but not sure if one version is desired over the other (like if the CMSIS-DAP version using hid would be slower at debugging vs the vendor specific class using bulk endpoints).
ATSAM SAM TCC vs TC for capture - Page 1
Forum section: electronics / general

author: rvalente
author_rank: Frequent Contributor
timestamp: November 25, 2020, 02:20:53 pm
content: Hello Mates,I need to migrate an application from STM32 to ATSAMC21J18A, but using the D21 xplained for first tests.I need to measure up 4 channels from 0 to 2KHzI'm not sure if the best approach is to use two groups of TCs chained (TC5+TC4 and TC7+TC6 ??) or a TCC capturing all the four channels. Right now there are no use of other timers for pwm, compare etc...What would you suggest?GreetingsGreetings from Brazil

author: ataradov
author_rank: Super Contributor
timestamp: November 25, 2020, 05:39:28 pm
content: Each TC or TCC can only perform one capture. The capture type is configured though EVACT bits and there is only one possible input per peripheral. CC0 and CC1 channels are used to store period and pulse width.

author: rvalente
author_rank: Frequent Contributor
timestamp: November 25, 2020, 08:01:55 pm
content: I'm not sure if I'm following, the datasheet says the TCC can do up to 4 captures, I understand there are four capture/compare units, from 0 to 3.So, the SAMD/C can't capture four channels with 32 bit timers, is it impossible?

author: ataradov
author_rank: Super Contributor
timestamp: November 25, 2020, 08:16:35 pm
content: There are 4 channels, and for compare they all can be used. But the only thing that can trigger a capture is TCCx_EV0. And That event will write period and frequency to CC0 and CC1.Neither TC nor TCC have inputs from the pins. They only have outputs. In order to do a capture you have to use EIC and Event System to deliver the event from the pin to the TCC.SAM C series has a minimum of 5 TCs, so if you can do one capture per TC and still have at least one TC and 2 TCCs left for other needs. If you just want to count the frequency, this method should work.

author: rvalente
author_rank: Frequent Contributor
timestamp: November 27, 2020, 10:20:56 am
content: Dang, that's was not what I was expecting...I need to use at list a 24bit timer with a 1MHz for my capture. So with the ATSAM there is no way around, right? Them I'll need to change the uC, any suggestions? I need AEC-Q100 qualified part

author: ataradov
author_rank: Super Contributor
timestamp: November 27, 2020, 10:44:44 am
content: If 24 bits is a strong requirement, then no, I see no way to do that with SAM. This sort of stuff is not something I pay attention to, so I can't say what MCUs could work here.

author: rvalente
author_rank: Frequent Contributor
timestamp: November 27, 2020, 11:08:49 am
content: Tks Mr Taradov, you've really saved me from a lot of frustrations!
Realtek Semiconductor Corp. - Page 1
Forum section: electronics / general

author: shanekent
author_rank: Contributor
timestamp: November 25, 2020, 05:37:57 am
content: Hi All -I'm starting to bang my head against the wall and I think posting here may be able to help alleviate some of my frustration.I'm consulting on a project that is utilizing some old ICs that were manufactured by Realtek Semiconductor Corp. (Realtek) and that are now obsolete. There website is here:https://www.realtek.com/en/. I have spent the better part of 2 months trying to get in contact withanyoneat Realtek who I can at least ask some questions to and to see if they have recommendations on alternative parts that I should be looking into with no luck. I've gone so far as to contact their distributors to try to start some kind of conversation with them. One woman I spoke to for one of their distributors just gave me a long sigh when I mentioned that I was trying to get in contact with them because even they have a hell of a time getting any communication going.My ask and wonder is whether or not there is anyone out there that has made contact with someone at Realtek and whether or not you would be willing to provide me with an introduction. This is a silly form of crowdsourcing this problem, but I'm starting to run out of options.Please, please, pleasesend me a direct message or respond below if you have had any communications with someone at Realtek in the past.Thank you so much, in advance.-Shane

author: AndyC_772
author_rank: Super Contributor
timestamp: November 25, 2020, 07:44:09 am
content: IIRC I had surprisingly good distributor support for Realtek from Future Electronics here in the UK.Even though they're known for being a high volume, low cost supplier of commodity devices, I was still able to get technical data and parts in modest quantities. This was about 10 years back, when I was designing specialised Ethernet switches; the number of potential suppliers for the necessary silicon was very limited, but Realtek were by far the easiest to deal with via that route.

author: Lindley
author_rank: Regular Contributor
timestamp: November 25, 2020, 10:09:33 am
content: Why not outline your chip problem here, there are a wide range of professionally experienced folk on this forum, expect a few of them will be well aquainted with the Realtek chips.

author: tszaboo
author_rank: Super Contributor
timestamp: November 25, 2020, 03:25:25 pm
content: Try their distributors, which seems to be Future in the USA. Even if you cannot get them to answer any questions, at least you could talk to someone who talked to them previsouly.
Zynq 7000 reboot from SD card - Page 1
Forum section: electronics / general

author: Jer0en
author_rank: Newbie
timestamp: November 24, 2020, 11:01:20 am
content: Hi,I have a Zynq 7000 processor running a bare metal application. It boots from QSPI flash. I'm looking for a way to reboot it from SD card under software control, irrespective of the values of the boot-mode pins. Is there a way to do that, for example by jumping directly into the the boot ROM code?Thanks in advance

author: RoadRunner
author_rank: Frequent Contributor
timestamp: November 24, 2020, 02:25:31 pm
content: If you looking to load kernel and dtb which is present on SD card then modifying Uboot Environment and pointing to load Kernel from SDCard will Solve the issue.

author: Jer0en
author_rank: Newbie
timestamp: November 25, 2020, 07:34:38 am
content: Quote from: RoadRunner on November 24, 2020, 02:25:31 pmI'm not entirely sure what you mean -- if you're saying that I can use an appriopriately configured UBoot to boot from SD card instead of from flash then that's not a solution. Initially booting from flash is a given, but there are circumstances under which I want to perform a reboot into the image on the SD card.
TI MSP-EXP430FR6989 with BOOSTERXL-SENSORS Example Code - Page 1
Forum section: electronics / general

author: ALackOfNumbers
author_rank: Newbie
timestamp: October 29, 2020, 03:04:07 pm
content: Has anyone tried to communicate with the TI sensors booster using an MSP-EXP430FR6989 development board? The sensor board comes with example code, but only for MSP-EXP432P401R and MSPEXP430FR5994. I checked the booster compatibility page, and the sensor board and my development board are compatible. I'm just not sure how to go about setting up the I2C communication. Anyone have any example code for this problem or good resources for I2C sensor communication on TI chips? Preferably without using RTOS, I just want to directly read accelerometer values from the sensor board and pass them through the MCU to my PC via UART without overcomplicating it.Any help/advice is appreciated, thanks!

author: Warhawk
author_rank: Frequent Contributor
timestamp: November 07, 2020, 11:03:13 am
content: Quote from: ALackOfNumbers on October 29, 2020, 03:04:07 pmYou likely get a reply faster from the E2E forum from TI.Meanwhile, you can check on dev.ti.com in the resource explorer for code examples (MSP430 ware)

author: rsjsouza
author_rank: Super Contributor
timestamp: November 22, 2020, 03:07:40 am
content: e2e is a good resource indeed, but you can skip the middle man and take a look at the Peripheral Examples of your device at the dev portal:https://dev.ti.com/tirex/explore/node?node=AHzGW02kpuebA5.2Fvw5XA__IOGqZri__LATEST

author: Warhawk
author_rank: Frequent Contributor
timestamp: November 22, 2020, 09:26:23 am
content: Quote from: rsjsouza on November 22, 2020, 03:07:40 amWhich is exactly what I wrote one line above

author: rsjsouza
author_rank: Super Contributor
timestamp: November 22, 2020, 02:35:04 pm
content: Quote from: Warhawk on November 22, 2020, 09:26:23 amI confirmed what you said but provided a link to the examples, as there are many points of entry for demos, middleware, peripherals, etc. So, less confusing to someone that may not be as experienced as others in navigating the portal.
Why ARM Cortex M FFT functions  for Q15 are not working! - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: November 20, 2020, 09:43:20 am
content: Hi,I want to do a simple test, I want to compare the output of ARM Cortex M FFT DSP functions, for the complex version and the real versionHere is my code,But I wonder why the complex version does not work! it would generate wrong results, most of the outputs are zero!

author: newbrain
author_rank: Super Contributor
timestamp: November 20, 2020, 10:34:13 am
content: Given your input buffer is a real sinusoid with a period equal to Fsample/256 and phase equal to 0, and you are not applying any windowing function, I would not expect anything different.Just values in bin 1 and in bin 255.Am I missing something?

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: November 20, 2020, 11:27:46 am
content: Quoteyour assumption is correct, But the bin 1 should be about 8393, check the real and complex version results!Real FFTComplex FFT

author: newbrain
author_rank: Super Contributor
timestamp: November 20, 2020, 12:46:16 pm
content: A couple of things in the following:Code:arm_cfft_q15(&Sx,bufComplex,0,0);Bit reversal should be enabled to have the output in the correct order.Also, without scaling (normally used for IFFT, by the book) the output will overflow, as it will grow by the size of FFT:QuoteSo both flags should be set to 1.I'm using the floating point cfft for an SDR project, (wrapped to directly use complex floats, C11 is so handy!) and they work as expected.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: November 20, 2020, 01:24:59 pm
content: Thanks, It now works as expected!
FT232H Sustained SPI Performance - Page 1
Forum section: electronics / general

author: sandeepzgk
author_rank: Newbie
timestamp: November 19, 2020, 10:25:29 pm
content: BackgroundI am using FT232H to communicate with my peripheral using the libMPSSE provided by FTDI. I am aware of the INFRA_SLEEP(2) issue with SPI_ToggleCS() function. My peripheral requires me to send in a CS toggle right after each 24-bits of data being sent to it. I have 40 such words of 24-bits that needs to be sent to the peripheral. I require to update the 40 words at a rate of 4KHz, which means I need to send 40x24-bit words every 0.25 milliseconds. This implies:I need to toggle the CS pin 40 times every 0.25ms => 160/ms => 160,000 toggle/second.I need to send 40x24-bit data every 0.25ms => 960bits/0.25ms => 3840bits/ms => 3.84 Mbits/second.3.84 MHz (SPI) is the theoretical sustained minimum requirement for my use case. Since 1Mbit/sec => 1MHz in SPI and the theoretical max of FT232H is 30MHz, I need about 12% of the limits of FT232H. I technically don't need sustained 3.84 Mhz, I can zoom at 30Mhz, sleep for 0.25ms (up to), and then go at 30Mhz, is this not possible with FT232H?ImplementationIn order to overcome the SPI_ToggleCS()'s sleep issues, I have packed the data efficiently to FT_Channel_Write directly. All the commands are right, I inspected the FT_Channel_Write calls and captured the transactions to effectively come up with what to send to FT_Channel_Write. This part works. My pack size to FT_Channel_Write is 40x writes, which includes 24bits of payload and 40 CS toggles in that. Then my main loop sleeps for 0.250ms before waking up and sending the next payload.ProblemAfter sending roughly 3150 K-bits of data via SPI no matter how fast or slow I send it, the FT232H seems to stall (no further data is sent till restarting my code). I have sent in different packet sizes, different delays, and a lot of combinations but. This seems to be the magical number I am hitting. 3135K to 3157 K-bits. Maybe there is some variance from testing.QuestionsWhat could be the issue here?Is there a buffer size limit I should be aware of? (I did pour over the datasheet and couldn't find anything around this number)What approaches would you suggest that I take to try to debug and find the root cause of this issue?

author: PCB.Wiz
author_rank: Super Contributor
timestamp: November 20, 2020, 01:39:10 am
content: Quote from: sandeepzgk on November 19, 2020, 10:25:29 pmAn apparent buffer limit issue of that size, is likely to be PC-Side, so you could try varying the packet size & counts to see if that number moves at all ?You could also adjust the SPI clock and see if that changes the ceiling ?
Help me identify this mcu - Page 1
Forum section: electronics / general

author: remix
author_rank: Contributor
timestamp: November 19, 2020, 08:16:19 pm
content: Hello,i am trying to identify the microcontroller from my treadmill display board.So far i know that it's QFP 52 pin. Very rear package. Probably Motorola ?011BZ004OCO255v, board date 2010, internal oscillator, SPI, ADCKnown pins on the mcu:1 - NC2 - Buzzer , general IO3 - NC4 - NC5 - Programming Data/Clock6 - XTAL 17 - XTAL 28 - Programming Data/Clock9 - NC10 - GND11 - NC12 - 5v13 - IO / enable music14-15 - IO16 - nc17 - IO18 - nc19 - IO20 - nc21 - 22 IO23 - 26 - NC27 - Heart beat sensor (1pin, probably ADC)28 - 33 / IO + display control (SPI)34 - 36 - NC37 - IO keyboard matrix38 - 39 - NC40 - 41 - NC42 - 43 - IO keyboard matrix44 - 5V45 - 51 - IO keyboard matrixJ2 - 4 pin connector, labeled as "WRITE". The pins form the bottom - GND, 5v, data1, data2Any help will be appreciated.

author: langwadt
author_rank: Super Contributor
timestamp: November 19, 2020, 08:32:05 pm
content: RC8 ?https://pdf1.alldatasheet.com/datasheet-pdf/view/249766/RENESAS/R8C25/+Q_8JJ8VODM.TDU+VEIzE+/datasheet.pdf

author: remix
author_rank: Contributor
timestamp: November 19, 2020, 09:00:26 pm
content: Thank you langwadt!Xtal pins and vcc/vss pins are the same.Pin 5 is MODE and pin 8 is Reset.It uses rx/tx for serial programming but there is a way to use MODE pin for rx and program the chipExactly what i was looking for!
PIC An In-Circuit Serial Programmer application - Page 1
Forum section: electronics / general

author: DonKu
author_rank: Regular Contributor
timestamp: November 15, 2020, 08:55:15 pm
content: This project shows how to implement an In-Circuit Serial Programmer application. It utilizes the ICSP's 5 VDC (Vdd) pin to toggle the PIC microcontroller between application mode and programming mode.https://crcomp.net/icsp/index.php(Thank you In Advance to readers who alert me to typos and whatnot.)
BME280 Vs DHT22 Temperature Sensor Shootout as Tested on the TTGO TDisplay ESP32 - Page 1
Forum section: electronics / general

author: jcrubin
author_rank: Frequent Contributor
timestamp: November 14, 2020, 01:46:34 pm
content: After receiving multiple requests and information pertaining the the BMe280 sensor I have procured several for testing and comparison against the DHT22 sensor which I have used in previous videos. With a somewhat even price comparison as shown between amazon and Bangood between the two, power consumption for the DHT22 being higher in reading scenarios if power budget is a concern. The BME280 dos require some quick assembly if the pin headers are to be used.Example links only below, do your own comparison!!!!BME280 -https://www.amazon.com/KeeYees-Temperature-Humidity-Atmospheric-Barometric/dp/B07KYJNFMD/DHT22-https://www.amazon.com/HiLetgo-Temperature-Humidity-Electronic-Practice/dp/B01N9BA0O4/Wiring the the TTGO is simple, one being I2C the other using a single GPIO. After checking, I'd modified one of the older DHT22 programs to accommodate both sensors for comparison. Initially i had ised a plastic bag to shield the sensors from the AC and fan but it appeared erratic over the course of 30 minutes, looking with the flir showed that the BME280 was too close to the TTGO. Adding extensions solved this, also using a second TTGO helped accuracy and putting all components into a project box further stabilized this. Variation between both BME280s was almost non-existent.The second cold start test of 30 minutes revealed no skew in temperature, dispelling any internal heater possibility. Further tests of the pressure sensor showed almost no variation and tested close to the value on my Ipad.In all tests it seems the BME280 did better than the DHT22.