hybridfree/eevblog-posts huggingface dataset:
PIC 18 resets on switch input - Page 1
Forum section: electronics / general

author: Puffie40
author_rank: Regular Contributor
timestamp: May 10, 2016, 07:18:48 am
content: I have a PIC18F4520 that I am trying to use as a 2 axis motor controller - it has two limit switches on B5 and B4 that are hooked up like the attached picture.I'm having a problem where the PIC resets when the switch on B5 is pressed. I've tried adding current limiting resistors and a filter cap, thinking it was a switch bounce issue. I have ensured BOREN and WDT are off, and portB is set as a digital input. VSS has 100nF coupling caps right next to the socketthe really confusing part is that the other three switches do not cause a reset when they are pressed, and I can't find any indication of a short, either visually or by multimeter.Any ideas?

author: Ian.M
author_rank: Super Contributor
timestamp: May 10, 2016, 07:57:07 am
content: Is LVP disabled in the CONFIG? RB5 is also the PGM pin used for low voltage programming . . .N.B. never let a switch connected to a MCU input directly short a capacitor. The high pulse current is not only bad for the switch, but the ringing with the trace or wiring inductance can crash or even damage the MCU. 100R in series with the switch or the cap to limit the peak current prevents many problems.

author: Andreas
author_rank: Super Contributor
timestamp: May 10, 2016, 08:06:43 am
content: Try a 1nF capacitor betwen MCLR and VSS pin. (short wires).Had a similar problem with 18F2520 when using a noisy (SCR controlled) power supply.With best regardsAndreas

author: dannyf
author_rank: Super Contributor
timestamp: May 10, 2016, 12:12:54 pm
content: maybe there is something specially about that input pin?I would put the 1k resistor serial with the input pin.

author: DTJ
author_rank: Super Contributor
timestamp: May 10, 2016, 12:43:58 pm
content: These are limit switches for a motor controller - does pressing the limit switch still cause a reset when the motor is disconnected. ie is the reset caused by noise / back emf from the motor?

author: Puffie40
author_rank: Regular Contributor
timestamp: May 10, 2016, 03:05:33 pm
content: During my troubleshooting, the motors have been off, so it's not emf related.

author: Kalvin
author_rank: Super Contributor
timestamp: May 10, 2016, 03:14:14 pm
content: From the datasheet page 266http://ww1.microchip.com/downloads/en/devicedoc/39631a.pdf:"When Single-Supply Programming is enabled, the RB5 pin can no longer be used as a general purpose I/O pin.".

author: Puffie40
author_rank: Regular Contributor
timestamp: May 11, 2016, 08:01:36 pm
content: Yep! It was the LVP Config bit! Once I turned that off, the resetting stopped.
lattice fpga (machxo2-7000hc) sd memory interface - Page 1
Forum section: electronics / general

author: favor7kim
author_rank: Newbie
timestamp: May 06, 2016, 04:00:05 am
content: Hi All,I'm working on development of Lattice FPGA & SD memory.currently, i use an AK-MACHXO2-7000 FPGA Development board to study it.I saw that there is example doc for SD Flash Controller Using SD Bus in lattice websitebut they explained only wishbone host interace.. so i don't know how to access between FPGA and SD card using Mico8is there anyone can help me?Tony Kim

author: ale500
author_rank: Frequent Contributor
timestamp: May 06, 2016, 05:05:15 am
content: There is a wishbone version of mico8 in the reference design package. If you do not want to use that version, you may go around emulating the bus, not that difficult. The wishbone spec may help you.http://cdn.opencores.org/downloads/wbspec_b3.pdfEdit: I just fond this:http://www.datasheetarchive.com/dl/Datasheets-SW12/DSASW00222379.pdf

author: favor7kim
author_rank: Newbie
timestamp: May 11, 2016, 05:43:07 am
content: Thanks for comment!...will try to it~
Flashlink JTAG on old PSD chip - Page 1
Forum section: electronics / general

author: CJay
author_rank: Super Contributor
timestamp: May 10, 2016, 07:18:24 am
content: A few simple gates on a parallel port connector and away I go to be able to read the code from an old PSD chip in an embedded system.But, no parallel port on my current PCs (I do have a few 'archived' PCs that could be used if all else fails) so, to read and program these old chips can I use a modern USB JTAG device?does anyone have experience of using a modern JTAG interface with ancient ST/WSI chips and if so which hardware/software combo did you use?While I want to be able to read these chips (and I can of course hack together a JTAG adapter with a few gates) and modify the code they contain I would rather buy a more modern JTAG interface that'd be more useful to me for a wider range of chips if that's at all possible.
LVDS-eDP converter supply bypass - Page 1
Forum section: electronics / general

author: nitrocaster
author_rank: Newbie
timestamp: May 09, 2016, 12:28:35 am
content: Hi,Is that really important for NCS8801 to have supply bypassed with 16 caps and 6 inductors as shown in typical application?That would take a lot of space on the board, which is pretty much limited.Any suggestions other than trial and error?Datasheet ishere.

author: Rasz
author_rank: Super Contributor
timestamp: May 09, 2016, 07:12:37 am
content: I wouldnt skip caps, those decoupling pins are there for a reason.you could probably skip inductors, most chinese and amateurs do when using IT6251 (similar chip) and it works finehttps://github.com/projectgus/novepad/raw/master/novepad-schematic.pdfhttp://www.ebay.com/itm/LVDS-to-eDP-Signal-Conversion-Adapter-Board-For-LCD-Controller-Display-Panel-DIY-/161745320023interestingly cheaper version appears to have better filtering on all railshttp://www.ebay.com/itm/LVDS-eDP-Converter-driver-board-f-LCD-screen-1lane-6bit-1366x768-fit-N156BGE-E41-/272186433444
Reading a USB HDD, with cypress FX? - Page 1
Forum section: electronics / general

author: rwgast_lowlevellogicdesin
author_rank: Frequent Contributor
timestamp: May 06, 2016, 07:03:55 pm
content: Im working on a little project to share a USB hdd via wifi. Originally I was going to use a RasPI, but I ended up breaking it due to mechanical stress. I have ordered a new one but I had an idea in the mean time.I have a little FX2 demo board laying around a long with an ESP2886 wifi chipset board. I was thinking maybe it would be cheaper and use less power to just connecet an FX chip to the HDD and then connect that to wifi. I figured there had to be some kind of demo code out there for reading mass storage devices via FX2, the only thing I could find was a mass storage driver for the fx2/windows. I know nothing about USB to tell you the truth, I do know that mass storage is a standard spec and was hoping to find some kind of demo code out there. Can anyone give me a kick in the rite direction?

author: Dielectric
author_rank: Regular Contributor
timestamp: May 06, 2016, 10:33:54 pm
content: It's possible to make the FX2LP talk to an ATA device, that's basically the AT2LP code. That will make a USB HDD. You're still stuck because the ESP8266 doesn't have USB Host and the FX2 is only USB Device.There may be some dirty hack to reroute the data from the GPIF to the UART and do something with it on the ESP. Thinking about it makes me queasy though. I'm imagining a virtual serial port and socat on a GNU box and it just gets weirder from there.Also, people are probably going to jump all over you because the RasPi is going to bottleneck your HDD throughput. Maybe it matters to you, maybe it doesn't.

author: rwgast_lowlevellogicdesin
author_rank: Frequent Contributor
timestamp: May 07, 2016, 12:44:18 am
content: Hmm well thanks for the pointer, ill probably just scrap that idea. As far as using a pi I dont really see it as a huge bottleneck compared to the wifi connection.

author: NiHaoMike
author_rank: Super Contributor
timestamp: May 07, 2016, 03:31:23 am
content: Maybe use an OpenWRT router with USB?
[BitCloud] End device StartNetworkReq - Page 1
Forum section: electronics / general

author: danergo
author_rank: Regular Contributor
timestamp: May 06, 2016, 06:42:34 am
content: Hi!I'm doing now some test on my network with one ED and a C.ED is polling periodically C to check if the connection is still alive or not.If I stop the C (unpower it), ED receives ZDO_NETWORK_LOST_STATUS through ZDO_MgmtNwkUpdateNotf. That's great.However when I restart the C (power it again, so it starts from scratch), ED is just don't want to realise it. In spite of my app (ED) constantly trying to ZDO_StartNetworkReq if the state is APP_STARTING_NETWORK_STATE (exactly like in WSNDemo). I waited 10 minutes, and nothing happened. CS_END_DEVICE_SLEEP_PERIOD is 60000.If I reinit the ED withCode:PDS_DeleteAll(false);HAL_WarmReset();it can start the network succesfully.What would be nice to check for investigate this one?Thanks!

author: ataradov
author_rank: Super Contributor
timestamp: May 06, 2016, 06:58:06 am
content: You need to wait for ZDO_NETWORK_LEFT_STATUS. ZDO_NETWORK_LOST_STATUS is just a notification that network is lost and stack will attempt to fix stuff. But technically (all the internal states) stack is still in the network.I'm also pretty sure that ZDO_StartNetworkReq() in that case will return ZDO_INVALID_REQUEST or similar error code.

author: danergo
author_rank: Regular Contributor
timestamp: May 06, 2016, 07:26:05 am
content: I see. Thank you.So it's a very bad design idea from me to use ZDO_StartNetworkReq right after ZDO_NETWORK_LOST_STATUS.2 questions remained:1.) if I call ZDO_StartNetworkReq when ZDO_NETWORK_LOST_STATUS is received, is it possible that I prevent the stack to gracefully leave the network and reinit it? (It seems)2.) The right way seems to do nothing when ZDO_NETWORK_LOST_STATUS is received but wait for ZDO_NETWORK_LEFT_STATUS. Can I be sure that after getting LOST status, also LEFT_STATUS will arrive sooner or later?Thank you

author: ataradov
author_rank: Super Contributor
timestamp: May 06, 2016, 07:31:18 am
content: Quote from: danergo on May 06, 2016, 07:26:05 amI'd need to check the code, but again, I'm pretty sure that ZDO_StartNetworkReq() will be confirmed with an error code and nothing bad will happen, stack will continue doing what it was doing, and ZDO_NETWORK_LEFT_STATUS will be called eventually.Quote from: danergo on May 06, 2016, 07:26:05 amYes, 100%.And if you are absolutely don't want to wait, there is ZDO_ResetNetworkReq(). That will bring everything into initial state no matter what stack is doing at the moment. But there should be no reason to use this at all.

author: danergo
author_rank: Regular Contributor
timestamp: May 06, 2016, 07:35:42 am
content: Thank you.I'm totally okay with waiting after ZDO_NETWORK_LOST_STATUS.
Codewarrior and USB Multilink in Windows 7/64 - Page 1
Forum section: electronics / general

author: AndersJ
author_rank: Frequent Contributor
timestamp: May 03, 2016, 08:37:18 am
content: I use CodeWarrior 4.7 for HCS12X, and CW 6.3 for HCS08.I also use the USB Multilink, primarily to download code, not so much for debugging.I run this in Windows 2000 since these tools do not work properly in 64 bit Windows 7.Have the problems been dealt with?Will the current version of CW and USB Multilink work W7/64, or are there still problems?How about Windows 10?Thankful for any clarifications,Anders J

author: LarryMartin
author_rank: Contributor
timestamp: May 05, 2016, 01:17:27 am
content: I've run CodeWarrior for MCU 10.6 and USB Multilink successfully on Win7 64 Pro.

author: nctnico
author_rank: Super Contributor
timestamp: May 05, 2016, 01:21:32 am
content: On the same PC of a different PC? My USB Multilink (also for HCS08) won't work on my newest PC due to a USB compatibility issue in the Multilink device.

author: LarryMartin
author_rank: Contributor
timestamp: May 06, 2016, 03:12:56 am
content: Yes. Same PC, and with each other.
Atmega256RFR2 strange behavior. - Page 1
Forum section: electronics / general

author: sandeep.b2
author_rank: Contributor
timestamp: May 05, 2016, 10:20:58 am
content: Hi Friends,I have Atmel's zigbit explainedextention board which is having Atmega256RFR2 controller. I am programming it with JTAG ICE debugger. I wrote a simple LED blinking code using registers for it. The problem is that when i debug code it works properly. but when i select "Start without debug" the code doesn't work. All leds just glow with very low intensity and the code hangs.Please someone tell me what could be the issue.Thanks in advance.

author: dannyf
author_rank: Super Contributor
timestamp: May 05, 2016, 10:31:02 am
content: I don't know what it is. But I can tell you that it is not your code so don't ever think about posting it.likely your led is blinking too fast for your eyes to see.

author: sandeep.b2
author_rank: Contributor
timestamp: May 05, 2016, 10:41:56 am
content: Thanks dannyf for instant reply.But forget about LED blinking, if i just write a code to glow led,it works properly in debug mode but when i download code in controller it hangs n all leds glow with very low intensity. So what could be the problem that a controller works properly in debug but not in run mode. could it something about clock or bootloader?

author: ataradov
author_rank: Super Contributor
timestamp: May 05, 2016, 09:11:39 pm
content: Well, publish the code you wrote.Glowing dimly is a sign that your LED is "blinking" real fast.
STM32F7 Discovery, QSPI Programmer for Linux and OS X - Page 1
Forum section: electronics / general

author: javier_varez
author_rank: Newbie
timestamp: May 05, 2016, 04:26:26 pm
content: It is a pity that ST hasn't released anything to program these memories under Linux (on Windows you can use ST-Link Utility), so I have developed a little utility to program STM32F7-discovery's QSPI Flash Memory.http://noosrequired.com/Javier_varez/QSPI_Programmer.gitI hope you find it useful.

author: MarkL
author_rank: Unknown
timestamp: May 05, 2016, 05:11:42 pm
content: I noticed this was missing too. Thanks for writing the code to deal with it.There was an abandoned branch in openocd that attempted to do this, but I wasn't able to get it to work. It instead managed to trash the flash option bytes. Nice.
JTAG is not working with Atmega32a using Atmel-Ice - Page 1
Forum section: electronics / general

author: nour
author_rank: Frequent Contributor
timestamp: May 03, 2016, 06:39:55 pm
content: I am using Atmel studio 7 and Atmel-Ice to program atmega32a on a board that I have made and using 16MHZ external crystal.When connecting the board to Atmel-Ice using ISP it works fine and I can program the mcu without issues.When connecting the board using JTAG the Atmel studio couldn't recognize the MCU(couldn't read the device signature) even it can directly tell the voltage reading without issues.I have followed the connection wiring exactly as described on ICE manual, I have double checked every connection and it is not working, also I have verified the fuses for the JTAG and it is set properly.Here is a screenshot of the connections that I have follow(from ICE manual)Here is a screenshot of my atmega32a fuses (of course using ISP)and here is a screenshot for the message that I get when I try to read the device signatureone more thing, I have tried replacing the atmega32a with atmega16a and the JTAG worked without any issues!!What the thing that I am missing??

author: obiwanjacobi
author_rank: Super Contributor
timestamp: May 04, 2016, 05:50:24 am
content: My first thought: check your wiring - and then again. Or let someone else check it.datasheet 29.10:Quote
BIOS -NOR flash - reading - Page 1
Forum section: electronics / general

author: Jane
author_rank: Frequent Contributor
timestamp: May 02, 2016, 08:39:21 pm
content: In my Linux based device there is EPROM that consists BIOS. I can use a programmer to read out the content( BIOS).I understand that when CPU starts( after power up) it goes to the address 0x1fc00000( the entry point to BIOS in Linux system) but it is the same as 0x0 offset in BIOS .For exampleif BIOS dump looks like1fc00000: 13 00 00 10 00 00 00 00 00 03 00 10 00 00 00 001fc00010: 3D 03 00 10 00 21 00 00 3B 03 00 10 00 00 00 001fc00020: 39 03 00 10 00 00 00 00 37 03 00 10 00 00 00 00.......and if I use a logic analyzer I should see 0x13 value as the first read data( address 1fc00000). But what will be the next read value ?Will it be the next value 0x00 from the next address 1fc00001 or it can be any data from any address in that BIOS?( in other words will be there a GOTO instruction?)And does it make a sense to use a logic analyzer to compare the really read values( with that logic analyzer) with those read in a programmer?Is there any rule that is used during the system designs that use BIOS(EPROM)?Is there any tutorial ?

author: kc8apf
author_rank: Regular Contributor
timestamp: May 02, 2016, 08:55:02 pm
content: What addresses are read and in what order depends a lot on the CPU being used. Typically, the first address in the flash is either the start of an interrupt vector _or_ an instruction. In either case, the reads will likely be word-sized rather than bytes.If it's an interrupt vector, the first entry is probably a reset vector and so the first word is the address of the reset entry point. The CPU will jump to that address and start execution.If it's an instruction, the CPU will just execute the instruction per normal.
GDB parser in hardware - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: April 30, 2016, 02:10:09 pm
content: so … I have developed a minimal GDB parser in vhdlI wonder if it's useful for some practical stuff, especially in SoftCoremy SWI_DBG protocol is more simple and flexible than GDB (especially to be implemented in VHDL)unfortunately no front-ends exist, which means that it's completely useless at the momentwhat do you think?

author: legacy
author_rank: Super Contributor
timestamp: April 30, 2016, 02:22:55 pm
content: it took a lot of weeks of spare time, now it works (more or less),so a few bad thoughts are proposing bad intentions in my head, whispering a few pointsin where they argue that it might be useful to put the GDB-paserser into a CPLD along with a BDM interface for MC683xxinteresting for both commercial and educational reasonse.g. replacing the Abatron BDI2000+BDIGDB with a cheaper solution, since their solution costs500 euro in equipment (2nd hand hardware on ebay), more than 2000 euro if brand new2000-2500 euro in license, in order to upload the specific firmware onto their BDI2000 debuggertoo many bad thoughts, I am going to the swimming pool

author: lukier
author_rank: Unknown
timestamp: April 30, 2016, 02:50:08 pm
content: I find this type of solution very convenient to use. For example OpenOCD is very powerful, but there is a lot of messing with scripts, running the TCP server and connecting with GDB.That's why I often use this:http://www.blacksphere.co.nz/main/blackmagicNot in hardware (VHDL), but in the MCU, but it also implements GDB server and translates that to ARM JTAG/SWI. Highly recommend.
STM32 XP USB Driver - Page 1
Forum section: electronics / general

author: Quarlo Klobrigney
author_rank: Super Contributor
timestamp: May 01, 2016, 03:26:22 am
content: Does anyone have another source for STSW-LINK009 as ST's website is broken.https://my2.st.com/content/my_st_com/en/products/embedded-software/development-tool-software/stsw-link009.html#It will give the accept terms etc.. accept, goes back to the upper download software button, then goes to its frontpage. Annoying.I was hoping to get going with the F7 discovery, but no driver. Thanks. Even v1.00 is accepted.

author: ade
author_rank: Unknown
timestamp: May 01, 2016, 06:44:32 am
content: It usually works if youdon'tlog in, from a slightly different link:Try:1) Log out from st.com2) Go to:http://www2.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link009.html#3) Click "Get Software"4) Accept license5) When you get the "Request Software", do not log in. Enter your name & email address.6) Wait for email and click on email link, download should work

author: Quarlo Klobrigney
author_rank: Super Contributor
timestamp: May 01, 2016, 06:58:39 am
content: Convolution mass confusiontoo many ways to do a simple thing when it comes to marketing and the "Sales Reps" desperately trying to get a lead on a big sale.To a hobbyist...I finally got it thanks to you, but the STLink VCP (virtual com port) will not start with a yellow ! next to it. I have changed the COM port# but to no avail.Any ideas would be welcome. XP SP2.

author: dannyf
author_rank: Super Contributor
timestamp: May 01, 2016, 07:54:01 pm
content: QuoteBecause ST outsourced its website to NXP I think,All signs, from their libraries to their websites, point to a software workforce that is exceedingly challenged at ST.BTW, just download the ST-Link utility and it contains the VCP and will install it for you without your asking it too.
Acrylic case for the LPC Link 2 - Page 1
Forum section: electronics / general

author: 0xdeadbeef
author_rank: Super Contributor
timestamp: April 30, 2016, 12:27:03 pm
content: Did this some months ago, but finally found the time to set up a little page with a description and the CAD/SVG files needed for cutting.So in case someone needs a case for the LPC Link Case 2, this might be somewhat interesting.As usual, released under the Creative Commons CC-BY...Link
Arduino Uno R3 and QVGA LCD - Page 1
Forum section: electronics / general

author: danadak
author_rank: Super Contributor
timestamp: May 14, 2016, 02:37:22 pm
content: Using Genuiono tool I am trying to get a compile and keep getting errorit cannot find UTFT.h even though I have placed it into project directory.I am new to sketch, normally use full up IDEs, so wondering if senilityis setting in.Attached is folder of vendor support files. The project is in "examples","arduino", "UTFT_Demo_320x240"Arduino part is 328PAny help would be welcomed.Regards, Dana.

author: bingo600
author_rank: Super Contributor
timestamp: May 14, 2016, 06:03:37 pm
content: To get it (UTFT_Demo_320x240.ino) to look for a ".h" file in current dir :Change#include <UTFT.h> // Searches in predefined search dirsto#include "UTFT.h" //Seaches in "current dir"/Bingo
STM32F4 I2C Slave TRANSMITTER - Page 1
Forum section: electronics / general

author: richardman
author_rank: Frequent Contributor
timestamp: April 29, 2016, 06:33:34 am
content: OK, I just added I2C asynchronous master read/write and slave read to the STM32F4 JumpStart API. It's fun to hook up 2 ST-Nucleos on two different computers and have them communicating. Why 2 separate computers? It's not really possible to support 2 ST-LINK/V2 from the loader, and it's far easier to use 2 computers than making the loader code work :-)Anyway, I am stumped with slave (asynchronous) transmitter. Indeed, I am not too clear how the TXE interrupt gets generated, is it because of the I2C Start condition with the "address | 1" from the master that triggers the slave ST to say "hey, now I better starting generating interrupts on TXE"?(Yes, I know about AF on GPIO, NVIC interrupt etc. all those are working for master async/sync read/write and slave async read)Thanks

author: Kjelt
author_rank: Super Contributor
timestamp: April 29, 2016, 09:45:14 am
content: In the ref. manual it says:Quote
timer problem ? - Page 1
Forum section: electronics / general

author: koray692
author_rank: Contributor
timestamp: April 29, 2016, 08:20:09 am
content: Hello friends , I am working on a project I need to use timer in this project but .At first time timer and its interrupt working without timer counting after that it works very well what is the reason first time timer start timer interrupt without counting to I wanted 2 second.When AA becomes 1 it start to count than it create a interrupt.void InitTimer3(){RCC_APB1ENR.TIM3EN = 1;TIM3_CR1.CEN = 0;TIM3_PSC = 279;TIM3_ARR = 59999;NVIC_IntEnable(IVT_INT_TIM3);TIM3_DIER.UIE = 1;TIM3_CR1.CEN = AA;}void Timer3_interrupt() iv IVT_INT_TIM3 {TIM3_SR.UIF = 0;GPIOD_ODR.B12=0; //ve durAA=0;}if(4<ACI_ACCx && r ){GPIOD_ODR.B12=1; // sa? ip çek ye?ilAA=1;h=h+1;r=~r;}
Getting started on stm32f103 - CoIDE vs. Keil - Page 1
Forum section: electronics / general

author: dannyf
author_rank: Super Contributor
timestamp: April 22, 2016, 04:36:42 pm
content: I started two posts showing how to get it going quickly on CoIDE and Keil.CoIDE here:https://dannyelectronics.wordpress.com/2016/04/22/getting-started-on-stm32f103-coide/Keil here:https://dannyelectronics.wordpress.com/2016/04/22/getting-started-on-stm32f103-keil/Arduino here:https://dannyelectronics.wordpress.com/2016/04/22/getting-started-with-stm32f103-arduino/Hopefully it is helpful for someone.edit: I decided to expand it to cover some STM8S chips as well.STM8S105C6 Discovery Board:https://dannyelectronics.wordpress.com/2016/05/04/getting-started-on-stm8s-discovery-board/STM8S003F3 - ghetto style:https://dannyelectronics.wordpress.com/2016/05/06/getting-started-on-stm8s003-ghetto-style/

author: TJ232
author_rank: Frequent Contributor
timestamp: April 22, 2016, 04:49:27 pm
content: Very nice tutorials for starters!

author: dannyf
author_rank: Super Contributor
timestamp: April 22, 2016, 05:22:47 pm
content: Thanks. Since the hardware set up is the same, I am going to write one for the STM32 Arduino version too.

author: jnz
author_rank: Frequent Contributor
timestamp: April 23, 2016, 04:37:42 am
content: I read the Keil one, and it's good for what's there.... But I'm confused as to why you are doing all of that manually and not just using the RTE and package manager!?It's like 5 clicks to start a new XYZ micro project and the startup, CMSIS, and any other packages you want are managed right from that package manager.I mean, yea, you have a more portable version your way, but why would I use anything buy Keil if I'm at one point using Keil? There are issues with that whole system - but the package manager is definitely the one of the strongest features.

author: dannyf
author_rank: Super Contributor
timestamp: April 24, 2016, 02:17:25 pm
content: I put up a page on how to get started on pic32, using pickit2 as the programmer:https://dannyelectronics.wordpress.com/2016/04/24/getting-started-on-pic32-mplab-xpickit2/

author: obiwanjacobi
author_rank: Super Contributor
timestamp: April 25, 2016, 06:23:05 am
content: Thanks for write ups.I had bought a cheap one off of ebay but didn't know what IDE to use...I am used to Visual Studio and Atmel Studio (as well as the Arduino IDE) and felt that other IDEs were lacking in one form or another (purely hearsay). So its nice to see the beginnings of several side by side....Do any of the STM32 IDEs/compilers support C++??
How's ATMega64M1 I/O clock related to CPU clock? - Page 1
Forum section: electronics / general

author: VinzC
author_rank: Frequent Contributor
timestamp: April 29, 2016, 04:17:19 pm
content: Hi all.Might be a dumb question but I'm trying to figure out what the ratio is between the main clock (F_CPU) and what's called in Atmel ATmega64M1 datasheet "CLKio". I'm just tryig to understand how to set the divider value for the baud rate I'veselected (i.e. 19200) and I've sought throughout the document and could find no clue. In the datasheet is given the formula to compute the divider value given the requested baud rate:LDIV[11..0] = ( f clk i/o / LBT[5..0] x BAUD) - 1but there doesn't seem to be anywhere what the ****F clk iois supposed to be compared with the main clock.Does anyone have a clue?

author: michaeliv
author_rank: Frequent Contributor
timestamp: April 29, 2016, 04:38:38 pm
content: Quote from: VinzC on April 29, 2016, 04:17:19 pmhahaAnyway I don't know, but these guys do:http://www.avrfreaks.net/forum/cant-find-clkio-description?name=PNphpBB2&file=viewtopic&t=12398http://www.avrfreaks.net/forum/relation-between-clkcpu-and-clkio

author: VinzC
author_rank: Frequent Contributor
timestamp: April 29, 2016, 10:05:02 pm
content: Quote from: VinzC on April 29, 2016, 04:17:19 pmQuote from: michaeliv on April 29, 2016, 04:38:38 pmfreq(CLKio)=freq(CLKcpu)Thanks! That kind of confirms what I finally figured out on my own. I've spent two days trying to understand why my computer kept on receiving garbage from the serial-on-USB. I thought I'd messed with the schematics (again) but no, this time I didn't. Just that friggin' documentation that misleads you. Now I think I've got my UART working but... jeez, what a waste of time.Thanks again.EDIT: Didn't check the dates... those questions date back in 2003! And still no update in the datasheet! Do they (Atmel) yield confusion on purpose or what?That bugs me. Oh well...
TCAM / BCAM hobbyist availability - Page 1
Forum section: electronics / general

author: paigeadele
author_rank: Newbie
timestamp: April 21, 2016, 10:22:43 pm
content: Hey yall, was just hanging out here at metrix create space and as usual I can't think of a single damn thing I could do here that I'm really all that interested in. Nothing bad on the place, there's definitely a lot of really really cool stuff here but it just doesn't catch my interest always. I started thinking about some things that I learned about recently, specifically with regards to BGP routers, and the cost of Juniper and Cisco gear. I can't say much on that note except that I know that RIB/FIB data is stored in TCAM memory (https://en.wikipedia.org/wiki/Content-addressable_memory)I can't find any of these chips easily first hand, was wondering if anybody had ever considered using TCAM in any DIY networking projects (eg: something cost effective for the average person and running OpenFlow?)

author: paigeadele
author_rank: Newbie
timestamp: April 21, 2016, 10:50:47 pm
content: A few notes and findings:http://www.renesas.com/media/products/memory/TCAM/r10pf0001eu0100_tcam.pdf

author: westfw
author_rank: Super Contributor
timestamp: April 22, 2016, 08:48:34 am
content: A somewhat modern x86 can do IP header verification/fixup and route lookups at about 4MP/s without any hardware assist (about full Gig-E capacity with minimum sized packets * 3) You probably don't need TCAMs till you start looking at large numbers of 1G+ interfaces. Buses and memory speed are more of a limitation than route lookup. (now, cut-through ethernet switching might have more use for TCAMs, and there's always the 10GE and really fast fiber, but not exactly the stuff I have in my home network.)
Free STM32F7 hands-on seminars, various EU countries - Page 1
Forum section: electronics / general

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: May 28, 2015, 12:36:36 pm
content: https://www.silica.com/seminar/view/stm32f7-hands-on-seminars.html

author: donotdespisethesnake
author_rank: Super Contributor
timestamp: May 28, 2015, 05:23:16 pm
content: Has anyone managed to register for one of these?A colleague and I applied a couple of weeks ago and got no response.

author: savril
author_rank: Regular Contributor
timestamp: May 28, 2015, 08:34:59 pm
content: I got the invitation directly from ST.What is nice to note in their invitation is: "Participants will receive a free STM32F7 Discovery kit".I haven't found specs for this kit but it is likely to have an LCD screen. It would be nice if it is a higher resolution than STM32F4 Discovery (320x240).

author: richard_t
author_rank: Newbie
timestamp: May 29, 2015, 07:54:37 am
content: I applied for the Cambridge (UK) one and gotQuotein response. So wait and see for me...

author: Ribster
author_rank: Frequent Contributor
timestamp: May 29, 2015, 10:42:44 am
content: +1 mike, thanks for the heads up!

author: nctnico
author_rank: Super Contributor
timestamp: May 30, 2015, 12:58:03 am
content: @Ribster: I gotta say I love the sig!I got that feeling every time I looked at ST's ARM controllers

author: Ribster
author_rank: Frequent Contributor
timestamp: May 30, 2015, 01:21:57 pm
content: Quote from: nctnico on May 30, 2015, 12:58:03 am-.-"... I must say i don't love your remark xD..Yeah, problems are there. Everywhere :p..

author: Monostable
author_rank: Contributor
timestamp: June 08, 2015, 09:20:01 am
content: @richard_t I just received the same respond for the Paris seminar.It is frustrating to receive such answer.

author: Quarlo Klobrigney
author_rank: Super Contributor
timestamp: April 24, 2016, 05:26:51 am
content: Same, same for 2016 US cities.The only difference was that I thought it said you must have the F7 board to participate..Quote from: savril on May 28, 2015, 08:34:59 pm
[Bitcloud] End device sleeping - Page 1
Forum section: electronics / general

author: danergo2
author_rank: Newbie
timestamp: April 20, 2016, 04:52:56 pm
content: Hi guys,I have a fairly simply question to you this time.I'd like to make an end device with bitcloud, because this time my device needs to be battery-powered.So I compile everything onto that, and it works okay.However, I have some buttons in the project which obviously needs to wake up the micro. However its INT pins were needed for something else.So I solved this by adding an AppTimer, which polls the buttons in every 50 ms, so it's very usable at this way, however:1.) Does the micro tries to rejoin the network each time, when the apptimer wakes it up?1.a) If yes, how can I control it to not waking up each time, but only each minute, or so?1.b) If no, why not?Thank you very much.Danergo

author: ataradov
author_rank: Super Contributor
timestamp: April 20, 2016, 08:08:18 pm
content: Quote from: danergo2 on April 20, 2016, 04:52:56 pmIf you are using a reasonably new version of the BitCloud, then it will sleep most of the time and wake up on interrupts.But if you do explicit sleep request, then device will go into deeper sleep mode, but in this mode it will only wake up on true external interrupts or sleep timer. In this case your software timers will not run.Quote from: danergo2 on April 20, 2016, 04:52:56 pmWhen your software timer callback is called, device is not really fully sleeping. It wakes up every 10 ms to run software timers.Device does not rejoin every time. It has to wake up every CS_END_DEVICE_SLEEP_TIME ms. There is a software timer just like yours that will take care of this.

author: danergo2
author_rank: Newbie
timestamp: April 21, 2016, 09:24:28 am
content: Hi,Thank you!QuoteI'm using a 3.2.0 right now. Is it new enough? In this case, if I don't do explicit sleep request, device will sleep when it can, and wakes up for my AppTimers (and interrupts, etc), and after CS_END_DEVICE_SLEEP_TIME ms it will try rejoining to network?QuoteSo,Code:SYS_EnableSleepWhenIdleis not the explicit sleep request, andCode:ZDO_SleepReqis the explicit one?

author: ataradov
author_rank: Super Contributor
timestamp: April 21, 2016, 04:16:18 pm
content: Quote from: danergo2 on April 21, 2016, 09:24:28 amYes, anything that has SYS_EnableSleepWhenIdle() is new enough.Quote from: danergo2 on April 21, 2016, 09:24:28 amCorrect.Quote from: danergo2 on April 21, 2016, 09:24:28 amNo rejoining is necessary, device will just poll the parent to indicate that it is still there.Quote from: danergo2 on April 21, 2016, 09:24:28 amCorrect.With SYS_EnableSleepWhenIdle() your system will wake up every 10 ms because all software timers are running from a single 10 ms hardware timer.

author: danergo2
author_rank: Newbie
timestamp: April 21, 2016, 08:35:24 pm
content: Thank you very much!
LPc11u68 Recognized as an USB mass storage device even when programmed in HID c - Page 1
Forum section: electronics / general

author: dizgah
author_rank: Regular Contributor
timestamp: April 18, 2016, 06:54:35 am
content: When I connected a newbie LPC11u68 to USB port,it recognized in windows as an USB mass storage device.When I programmed LPCOPEN HID example by Flash magic to it,after resetting the board,my PC can't recognized it.Only when I pulled down PIO0_1(ISP selection pin)it still recognized as a Mass storage device.

author: Jeroen3
author_rank: Super Contributor
timestamp: April 18, 2016, 07:00:33 am
content: QuoteTry pulling it high (with a resistor of min 10k to max 47k).Also read what PIO0_3 does.

author: dizgah
author_rank: Regular Contributor
timestamp: April 19, 2016, 04:32:17 am
content: Thanks for your guidance.I'm using a simple header board with USB port(As i said PC successfully recognized 11u68 as mass storage devices ,then I think there are no hardware fault). Also I'm using LPCXPRESSO IDE v8.0.0,I tried all of the USBD examples in the LPCXPRESSO boards LPCOPEN examples, and they programmed successfully to the chip,also I config a LED to blink. In all of them LED blinked which means MCU is running , but when I connect board to the USB port of my PC,I cant see it in the USB or HID section of my PC's device manager. I don't checked SWD, is LPC11u68 support it? WBR.EDIT:know when I compiled LPC11u68 lpcopen HID examples for the manley 11u68 board ,devices appear in the devices manager but after a second it disappear while I don't disconnect it

author: John_ITIC
author_rank: Frequent Contributor
timestamp: April 19, 2016, 07:00:03 am
content: Try to get your hands on a USB protocol analyzer. It will tell you exactly what goes wrong in a few seconds. Without one you could blunder around for a long time. I'm not sure what the availability is in Iran. We are not allowed to ship there (I think) even with the latest sanctions lifted...

author: dizgah
author_rank: Regular Contributor
timestamp: April 20, 2016, 03:58:03 am
content: with adding a 10uf tantal cap to the power line it is working fine know.thank you every one
Using USBASP for ATMEGA48 Without Being Able to Set SCK Period - Page 1
Forum section: electronics / general

author: firworks
author_rank: Unknown
timestamp: April 19, 2016, 03:55:24 am
content: I've got a USBASP programmer off eBay that has old firmware on it. When I use avrdude it gives the following error:avrdude: warning: cannot set sck period. please check for usbasp firmware update.avrdude: error: programm enable: target doesn't answer. 1avrdude: initialization failed, rc=-1Double check connections and try again, or use -F to overridethis check.I don't have another programmer to try to program the firmware on this one with. However, I was able to connect and program an ATTINY2313A just fine with it. I'm wondering because I'm contemplating soldering some headers onto a consumer electronic that I found the 6 ICSP pins on but I am not sure if I should bother if I won't be able to communicate with the microprocessor. Is there any reason I would be able to communicate with a Tiny2313 but not an Atmega48A without setting SCK on the programmer?

author: sleemanj
author_rank: Super Contributor
timestamp: April 19, 2016, 05:13:36 am
content: Most likely your USBAsp actually has the auto-speed firmware on it, it's not necessarily "old", the error about not being able to explicitly set the clock rate in such case is innocuous, provided it works.However this firmware won't work for chips setup to clock very slowly (less than 1MHz from memory).There are some reasons you might not be able to communicate with a functioning chip, most commonly it might have RESET disabled, or SPI programming disabled, or be setup for a crystal when you don't have one connected, or be setup for a clock when you are not feeding it one, the first two cases are not recoverable without high voltage programming, the last two cases you can recover by injecting an 8MHz square wave into XTAL1 pin which will get it able to talk enough to re-burn the fuses with avrdude appropriate for your situation.If you have an Arduino handy you can always load up the ArduinoISP sketch and break out your soldering iron to re-burn the "official" USBAsp firmware which doesn't auto-speed but does allow you to set the bit clock ( -Bx option to avrdude ).
Universal Bee, are they good? - Page 1
Forum section: electronics / general

author: blueskull
author_rank: Unknown
timestamp: April 17, 2016, 11:21:43 am
content: Hi,Has anyone used Universal Bee product line? I'm particularly interested in its 16kB QFN20 3mm*3mm version.My previous choice was STM32F070, but it seems like its USB library documentation is not that friendly, and it requires an external oscillator.The oscillator-less STM32F072 with QFN28 package is $3 each, which I can not justify its value.Then, I came across the Silabs one, it comes with USB, ADC, PWM and on die reference, USB oscillator and even 5V input LDO.Seems like it gives me a single chip all in one solution at $1.1, and it comes with free Keil C compiler and equally nice graphical configuration tool just like STM32.So, any opinions? Any experiences? Any possible traps for young players (I'm new to device side USB)?Thanks,Bo

author: westfw
author_rank: Super Contributor
timestamp: April 19, 2016, 10:13:10 am
content: QuoteIt's an 8051 thing. Eww!I have no feel whatsoever for how a C implementation of USB would run (space or performancewise) on an 8051 architecture. You might want to see if they have some example projects that come close to what you want to do. How about a Happy Gecko instead?
How to get Yaw pitch roll values from MPU6050 rather than using Code DMP6 - Page 1
Forum section: electronics / general

author: alberttan
author_rank: Newbie
timestamp: April 17, 2016, 06:44:41 pm
content: Hi, I am using mpu6050 with arduino uno to get the value of yaw pitch roll motion. Is there any source code I can use to get the data from mpu6050?Thanks.Your reply is much appreciated.

author: andyturk
author_rank: Frequent Contributor
timestamp: April 17, 2016, 06:57:00 pm
content: http://www.x-io.co.uk/open-source-imu-and-ahrs-algorithms/

author: janoc
author_rank: Super Contributor
timestamp: April 17, 2016, 07:39:25 pm
content: Please don't start a new topic for the same issue.
SAM module in Payment transactions & cryptogram key storing - Page 1
Forum section: electronics / general

author: dizgah
author_rank: Regular Contributor
timestamp: April 23, 2016, 09:38:07 am
content: Hi every one,As you know because of low security factors,General MCU's are not appropriate choice for storing Transaction or cryptograms keys.Therefor embedded systems developers used SAM modules for secure storing these Keys .SAM stay on among MCU & Card reader,then being responsible for all key transceiving .As you can see these are only titles of its function ,but I'm looking for practical approaches and detail of using SAM module to en-securing a payment methods such as protocols, HW/SW layers & ...
L1 cache causing error in bootloader - Page 1
Forum section: electronics / general

author: jtronix
author_rank: Regular Contributor
timestamp: April 13, 2016, 11:25:14 am
content: I'm working with renesas RZ A1H cortext A9 processor and i have one problem with Boot loader. In boot loader if L1 cache is initialize then it wont jump to the user application and it stuck after jump function. also I'm initializing L1 cache again in my user application.Everything works fine if L1 cache is not initialize in bootloader.

author: tszaboo
author_rank: Super Contributor
timestamp: April 13, 2016, 11:29:06 am
content: If this is just a "public announcement", then I would like to add, that the ART accelerator, which is a cache to the Flash on the STM32 MCUs, also cause issues when bootloading.I would just turn off any caching on any architecture when bootloading.

author: jtronix
author_rank: Regular Contributor
timestamp: April 13, 2016, 11:33:28 am
content: How to overcome this issue of cache?? In bootloader i need cache to perform operation faster but it wont booting my application.Is there any steps that needed before jumping to the user application???

author: tszaboo
author_rank: Super Contributor
timestamp: April 13, 2016, 11:47:16 am
content: On that MCU the issue was:10 The MCU was containing code.20 We overwrote the Flash.30 We were expecting that the new code will be excecuted, but the old was, since it was in the cacheThe solution was to 25 flush the cache. Or to turn it off if possible.

author: andersm
author_rank: Super Contributor
timestamp: April 13, 2016, 01:22:03 pm
content: On some architectures, the caches contains random garbage on powerup and needs to be cleared before being enabled.

author: jtronix
author_rank: Regular Contributor
timestamp: April 14, 2016, 04:09:21 am
content: do you have cache flush assembly code for cortex A9 processor or programming guide ?

author: andersm
author_rank: Super Contributor
timestamp: April 14, 2016, 05:11:46 pm
content: You can probably find code easily on the net (eg. any open-source OS that supports the Cortex-A9). The cache maintenance operations are performed via CP15, and are documented in the ARMv7-A architecture reference manual, and the Cortex-A9 technical reference manual for the core-specific bits.
removed - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: April 09, 2016, 12:15:49 pm
content: erased

author: ale500
author_rank: Frequent Contributor
timestamp: April 14, 2016, 07:45:43 am
content: Do you know something about the BDM protocol for colfire v2 ? what happens with /BKPT after/during you issue a command ? when should it go high again ? do you know ?

author: ale500
author_rank: Frequent Contributor
timestamp: April 14, 2016, 09:50:17 am
content: QuoteWell, that was unnecessarily rude. You have shown such an attitude in your other threads too, no wonder nobody seems to really care whatever you try to do.

author: ale500
author_rank: Frequent Contributor
timestamp: April 14, 2016, 12:05:47 pm
content: QuoteQuotemaybe I didn't realize your disinterest.
DSP56K 24-bit DSP and VHDL Source - Page 1
Forum section: electronics / general

author: Kalvin
author_rank: Super Contributor
timestamp: April 14, 2016, 08:32:54 am
content: Hi all,I was looking for some VHDL code implementing DSP processing, and I found this project "Firebee":http://atariforge.org/gf/project/firebee/Apparently they have also implemented the 24-bit fixed point Motorola/Freescale DSP56K processor synthesizable on a FPGA:http://atariforge.org/gf/project/firebee/scmsvn/?action=browse&path=%2Ftrunk%2Fvhdl%2Frtl%2Fvhdl%2FDSP%2FAlthough the DSP56K is now obsolete, the source code might be useful for someone wanting to study how to implement a DSP processor on a FPGA.The Motorola/Freescale 24-bit fixed point DSP56K was a predecessor for the newer DSP56300 series DSP processors. The DSP56300 series contains some architectual enhancements and provides also multiple cores on one chip, but it is also end of life if I have understood it correctly. Nevertheless, the architecture is pretty nice for an assembly programmer. The tools (assembler, linker and simulator) are freely available. There might also be a port for an old GCC C compiler available but I haven't used it.Edit: I have no idea how complete this implementation is or how well it synthesizes etc. but it can be used as a source for studying.

author: krivx
author_rank: Frequent Contributor
timestamp: April 14, 2016, 08:37:50 am
content: Very interesting, t