hybridfree/eevblog-posts huggingface dataset:
RFC: STM32 USB RGB Matrix - Page 1
Forum section: electronics / general

author: johj
author_rank: Newbie
timestamp: November 02, 2016, 10:06:27 pm
content: Hi!I'm designing a PCB for driving a 8x8 common-cathode RGB Matrix. The design is based on anSTM32F05doing 16-bit PWM on all 24 channels. The board is controlled via USB and boards are daisy-chainable to create bigger displays.I've got the schematics more or less done and would love some feedback before I begin laying out the PCBShort explanation of the different sheets (attached):matrix: The headers for the RGB matrix itself plus current-limiting resistors for all the columns.driver: Fast buffers for the columns (anodes) and current sinks for the rows.mcu: The STM32 design is based largely on the STM32F4Discovery andthis board from Rusefi. The matrix columns are driven by PWM from the STM32F05. The board can either be powered by 5V from USB or external power. I also added a button to pull BOOT0 to VDD in order to enable the DFU bootloader as per STM32 AN2606.daisy: Boards can be daisy chained with SPI. The board connected to USB is the master while the rest are slaves. There are four headers for stacking boards in all directions. A switch ties MOSI or MISO to the neighboring board, thus enabling SPI transmission in/out of one of the four headers. For master -> slave, the switch would be on MOSI for the master and MOSI for the slave. For slave -> slave, the switch would be on MISO on the transmitting side and MOSI on the receiving side.That's about it, is there anything crucial I've missed? Anything you would've changed? Feedback is more than welcome- joh

author: exmadscientist
author_rank: Frequent Contributor
timestamp: November 03, 2016, 01:11:04 am
content: You're violating V_IH (minimum input high voltage level) on the 74AC244 parts. (Also, don't use AC family logic.) Look at the bus translator families such as ABT or BCT, which also have the advantage of higher current sourcing capability.

author: johj
author_rank: Newbie
timestamp: November 03, 2016, 09:34:35 am
content: Quote from: exmadscientist on November 03, 2016, 01:11:04 amAh, indeed! Thank you, the SN74ABT244A looks ideal.Now if only I could find a high+low side driver for the rows (replacing ULN2803), then the board could also work with common-anode displays... Would need approx ~1A current source/sink, but I haven't been able to find anything suitable.

author: johj
author_rank: Newbie
timestamp: November 03, 2016, 08:00:05 pm
content: Quote from: johj on November 03, 2016, 09:34:35 amAfter further inspection the 74ABT is not usable since it has V_OH=3V. I need something which has a V_OH > 3.5V (the forward voltage drop of the LEDs) and that accepts 3.3V logic at the inputs.I've tested 74AC244 and although the datasheet says otherwise, it seems to work with 3.3V logic...
Need urgent stock of GAL22V10 or GAL16V8 - Page 1
Forum section: electronics / general

author: alexpal
author_rank: Newbie
timestamp: November 08, 2016, 03:36:50 pm
content: Because Lattice discontinued their pld gal16v8 and gal22v10 I bought the alternative Atmel ATF22V10 only to find out our programmer doesn't support those chips yet. I've tried to find some surplus stock of the old gal chips to no avail. Any user has some idea where I can find them (delivered to Portugal in the next 5 days)? Thanks!

author: CJay
author_rank: Super Contributor
timestamp: November 08, 2016, 03:42:27 pm
content: They're both eraseable devices so do you have to have new or can you use pulls from working boards?

author: wraper
author_rank: Unknown
timestamp: November 08, 2016, 04:02:11 pm
content: You also can use PALCE16V8

author: stj
author_rank: Super Contributor
timestamp: November 08, 2016, 04:25:23 pm
content: http://uk.rs-online.com/web/c/semiconductors/programmable-logic-circuits/splds/?searchTerm=gal16v8

author: wraper
author_rank: Unknown
timestamp: November 08, 2016, 04:29:06 pm
content: Quote from: stj on November 08, 2016, 04:25:23 pmDid you check actual stock? Because there is none.

author: AndyC_772
author_rank: Super Contributor
timestamp: November 08, 2016, 04:34:21 pm
content: At risk of suggesting the obvious, it looks as though Arrow have thousands of them:http://www.findchips.com/search/gal16v8

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: November 08, 2016, 07:16:01 pm
content: Got an old PC with parallel printer port? Build your own programmer.Parallel Port ATF and GAL Programmer
How difficult would it be to make such chip DDR3/4 interface - bridge IC - HBM2? - Page 1
Forum section: electronics / general

author: mariush
author_rank: Super Contributor
timestamp: November 02, 2016, 09:51:46 pm
content: For the people here that are into designing chips and working with FPGAs and stuff ?Something that has been bothering me for some time....The biggest common memory chips for DDR3 or DDR4 seem to be 8gbps (1GB) so you need 8 of them to have a 8 GB memory stick, with all the downsides of that when it comes to power consumption.We now have 4GB and 8 GB HBM2 stacks (with 4 or 8 dies respectively in stack, and a base die with the microcontacts) .. each stack runs at much lower frequencies compared to DDR4, around 1 ghz but there's a 1024 bit wide bus.I'm wondering how difficult it would be to create a chip that would act as a sort of bridge between processors and HBM2 memory, basically appear as 64 bit or 128 bit wide DDR4 or DDR3 on one side, and have the 2 or 4 x 1024 bits connections on the other side.I'm thinking small interposer, 2 x 8 GB HBM2 dies, tiny bridge chip in the middle and all in something like 100-150 pin bga chip that would be connected directly to a DDR4 channel on motherboards in small formats like ITX or mATX .. you have motherboards with 16 GB built in and optionally a single so-dimm DDR4 (the second channel) to add 16 GB more.Or for laptops, replace the expansion slots for ram and have 4 stacks of 8 GB around a bridge chip, all on an interposer and have this show up as dual channel DDR4 to older processors. So you don't have redesign processors to make them work with HBM2 memories. Apple solders 8GB or 16 GB directly on the motherboard already so it's not an uncommon practice.I guess this bridge chip would have to read and write 2048 or 4096 bits at a time from the 2-4 stacks so maybe it may have to buffer a few write requests therefore some bit of fast sram memory may be necessary or some logic to read 1048 bits from a single chip, modify 64-128 bits, write back the 1024 bits, if it's not possible to read/write less in one go from a single hbm2 chip.Last I heard, the interposer for a video card (to have the 4 hbm chips around the large gpu die) costs around 35$ but the interposer for this kind of thing would be much smaller because the bridge IC wouldn't be as complex as a video card chip, it would be just the memory controller part of such chip which is maybe 10-20% of the surface.So I'm thinking maybe $10-15 for smaller interposer would be doable, and maybe 5$ for the bridge chip if made in volume.. and wouldn't be worth it in that case.. instead of 8 chips each consuming 1-2 watts, you'd have 2 hbm2 stacks of 4 gb and maybe half the power consumption...
Purpose of locking GPIO on STM32F4s - Page 1
Forum section: electronics / general

author: BurnedResistor
author_rank: Regular Contributor
timestamp: October 31, 2016, 06:42:14 pm
content: While skimming over the reference manual for the STM32F4, I noticed that it feature a gpio lock. Single pins can be locked until a full reset of the mcu. What is the practical purpose of this feature?

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: November 01, 2016, 03:28:29 am
content: Those pins might be connected to something that could do Bad Things if fiddled with at the wrong time. It's a safety feature which limits the effect of software bugs and hardware glitches, hopefully preventing the device from damaging equipment or killing people when it misoperates.To be clear - the lock function works on the port'sconfigurationbits, not the output data or set/reset registers. So locking a pin doesn't prevent it from being used, but does prevent it from being changed from one configuration/mode to another. So for example if a pin is set to be a push-pull output, after locking the configuration it can't accidentally be set to eg. analog input mode.This feature makes sense because usually once a GPIO port pin has been set up (to match the external hardware) it won't be changed again (until Reset, when all pins are set back to floating input mode).

author: BurnedResistor
author_rank: Regular Contributor
timestamp: November 01, 2016, 10:28:56 am
content: Aha that makes sense!Thank you!

author: jnz
author_rank: Frequent Contributor
timestamp: November 02, 2016, 05:42:07 pm
content: FWIW... Practical example, airbag driver or other explosive elements.
LPC4337 and j-link programing - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: November 01, 2016, 01:49:15 pm
content: Hi,As you may know the LPC43XX with internal flash needs a signature or some kind of CRC generation in the execution image,I'm using keil as my tool and j-link as my debugger. the problem is that everything works exactly fine when I flash the code and use j-link for debugging. but when I re-power the board it would not boot up. when I use flash magic to flash the code and tick the activate the flash bank the MCU would boot up after re-powering. I think the keil has the option to generate the signature but I do not know how to resolve the problem. do you have any idea?
Generate the bit sequence needed to program a pic or avr ? - Page 1
Forum section: electronics / general

author: Jaunedeau
author_rank: Regular Contributor
timestamp: October 31, 2016, 08:25:00 pm
content: Hi,Is there a pic or avr windows or linux based software (maybe a programmer ?) which could take a .hex and generate a file with the bit sequence that needs to be pushed on ICSPDAT / MOSI in order to flash the .hex on the mcu ? I am making some tests just for fun, but reading each pic's programming specification looking for difference is not the funniest partThank you,John.

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: November 01, 2016, 02:35:53 am
content: Not that I know of, but you could modify the source code of a programmer (eg.Ardpicprog) so it saves the bits into a file as it is programming an MCU.You don't need to have an actual programmer or MCU - just make the programmer softwarethinkthat the hardware is there.

author: matseng
author_rank: Frequent Contributor
timestamp: November 01, 2016, 02:57:33 am
content: Quote from: Jaunedeau on October 31, 2016, 08:25:00 pmFrom what I remember when I wrote the code for a programmer many years back there are no differences between the pics except for start- and end-locations for the different memory areas. This might not be true for the newer and fancier devices of today, but back then it was just basically same-same.And since the memory location already are specified inside the hex-file the programmer really don't need to be concerned with the locations of the different devices...

author: westfw
author_rank: Super Contributor
timestamp: November 01, 2016, 06:53:50 am
content: You could produce such a thing for AVR using "Optiloader" as a starting point. (https://github.com/WestfW/OptiLoader)This currently reads a .hex file from memory and does a series of SPI commands to burn an AVR. You could compile it PC-side, read the .hex file from a file, and change the SPI calls to writes to another file...(It's somewhat more direct than most of the alternatives, which read .hex files and write some "programmer communications protocol" (avdrude) or read some communications protocol and generate SPI commands (programmer firmware.))
some good book for digital design [tips topic] - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: October 14, 2016, 02:26:14 pm
content: I say:A Handbook of Black MagicbyHoward JohnsonandMartin Graham(it's available on Amazon dot com)

author: legacy
author_rank: Super Contributor
timestamp: October 14, 2016, 03:35:11 pm
content: ordered, and paid my copy just right 45 seconds ago

author: chris_leyson
author_rank: Super Contributor
timestamp: October 14, 2016, 05:23:38 pm
content: Yep, it's a damn good book, shame that people who have EMC problems with their designs don't bother to read it. Most if not all of the formulae are in imperial units though.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: October 14, 2016, 05:39:00 pm
content: This one is also quite good:https://www.amazon.com/Circuit-Designers-Companion-Third/dp/0080971385It's not as specialized asBlack Magic, but still good.

author: gmb42
author_rank: Frequent Contributor
timestamp: October 14, 2016, 07:08:58 pm
content: Quote from: legacy on October 14, 2016, 03:35:11 pmSo how do you know it's a good book before reading it?

author: legacy
author_rank: Super Contributor
timestamp: October 14, 2016, 08:27:29 pm
content: Quote from: gmb42 on October 14, 2016, 07:08:58 pmI have read it in a library inside my university campusunfortunately I can't bring it out, it's a rule

author: legacy
author_rank: Super Contributor
timestamp: October 29, 2016, 11:01:03 am
content: quoted invideo

author: Cerebus
author_rank: Super Contributor
timestamp: November 01, 2016, 01:37:40 am
content: Quote from: chris_leyson on October 14, 2016, 05:23:38 pmI consider that a cardinal sin in this day and age -especiallywhere electromagnetics are involved. Shame, I've seen the man talk and he clearly knows his stuff but the idea of having to wade through maxwells et al. puts me right off.Some of my recommendations for basic digital design textbooks:Digital Design by M. Morris Mano - a bit outdated but a good guide to fundamentalsDigital Design and Computer Architecture by David & Sarah Harris - covers the digital fundamentals and goes on to use them for basic computer design. If your tendencies are in this direction then this books is the starting point for you.Digital Design - Principles and Practices - John F Wakerly - Most modern of the list. Again, sound basics but perhaps better treatment of recent trends such as programmable logic (CPLDs, FPGAs).If people are looking for specific areas I've probably got quite a few recommendations for quite a few areas. My book collection is faitly heavy on digital topics, some quite specialized.
What is a "legacy" part ?   Microchip states that Microstick II is legacy - Page 1
Forum section: electronics / general

author: ez24
author_rank: Super Contributor
timestamp: November 01, 2016, 06:46:25 pm
content: A few days ago I watched a YT video on an IDE by Microchip (I think the latest one) and in the video I think I saw a selection of boards. A sub-heading was titled "Legacy" for legacy boards and under this was Microstick II. Now I cannot find the video.I can understand this for boards that use serial connections because today laptops do not have serial connections. But the Microstick II has USB which is the latest way to connect boards to a computer. So I am wondering why Microstick II is legacy (assuming I am right about the video).I assume "Legacy" means old but I really do not know what it means in the MCU world. It might be about bits and pieces.Any ideas? (Can anyone confirm that it is under Legacy in the IDE?)thanks

author: Ian.M
author_rank: Super Contributor
timestamp: November 01, 2016, 07:04:14 pm
content: As far as I can see, for Microchip, Legacy=="We can't be arsed to update toolchain support and sample software for this product". While there may currently be basic MPLAB X support for a particular legacy product, it could go away with any future revision, purely at the whim of marketing. e.g ICD2 support was totally dropped between the beta and v1.00

author: ez24
author_rank: Super Contributor
timestamp: November 01, 2016, 07:06:54 pm
content: Quote from: Ian.M on November 01, 2016, 07:04:14 pmThanks now I understand it is support not something technical.

author: Ian.M
author_rank: Super Contributor
timestamp: November 01, 2016, 07:12:19 pm
content: Its a case of: If you are learning a particular Microchip legacy product, you usually need to use the archived compiler and IDE versions that fully support the sample software and tutorials for it. Also they jack up the price of legacy chips well above more recent comparable chips so that those users who need 20 year product lifecycles pay throuh the nose for the privilege.
signal generator for ultrasonic welding - Page 1
Forum section: electronics / general

author: meliharicii
author_rank: Contributor
timestamp: October 30, 2016, 03:54:52 pm
content: hi guys. i making ultrasonic welding machine. but my problem about signal generator. how is the make signal generator? i need the output 20kHz and 2000w. can you help me?thanks

author: Simon
author_rank: Unknown
timestamp: October 30, 2016, 03:59:05 pm
content: You problem will be upsetting the whole forum if you make two identical topics. Please don't do that, and this is totally the wrong section too. Your topic here is in the right place:https://www.eevblog.com/forum/projects/signal-generator-for-ultrasonic-welding/
Curiosity Development Board  - Does it come with mikroBus header ? - Page 1
Forum section: electronics / general

author: ez24
author_rank: Super Contributor
timestamp: October 30, 2016, 10:06:11 pm
content: HiOn Microchips site (and other sites) they show their board as having NO headers for the mikroBus connection:(the HPC model shows headers but will not be available until next Jan)http://www.microchip.com/promo/curiosityFrom an unboxing YT video, there are headers:The video is dated last May, maybe Microchip stopped installing them since then?Has anyone received one of these lately and can tell me?As a side point in the video he says only one breakpoint (MPLAB X IDE) is allowed, is this true?https://youtu.be/IjSEW2njxI0?t=333thanks

author: cv007
author_rank: Frequent Contributor
timestamp: October 31, 2016, 12:59:17 am
content: I bought one recently, if I remember correctly the box had a date code of May 2016 (bought from Mouser). Mine has headers on the mikrobus just like the video- maybe the early ones had no header and nobody updated the original pictures when they decided to add them?. I have a pic12f1822 mounted at the moment and only one breakpoint is allowed (same as when pickit3 connected- its a limitation of the pic being used).
DRAM Row Hammering - hardware volnerability - Page 1
Forum section: electronics / general

author: zapta
author_rank: Super Contributor
timestamp: October 28, 2016, 12:19:09 pm
content: This was mentioned recently on Security Now, hardware security vulnerability that is exposed by malicious read patterns that cause excessive refreshs.https://nakedsecurity.sophos.com/2015/03/12/row-hammering-how-to-exploit-a-computer-by-overworking-its-memory/http://thehackernews.com/2016/10/root-android-phone-exploit.htmlWould be interesting to see how this got addressed. It's not clear if standard ECC completely eliminates the problem.

author: andersm
author_rank: Super Contributor
timestamp: October 28, 2016, 01:56:40 pm
content: So far, the fix seems to be to increase the refresh rate. The LPDDR4 standard has an optional "target row refresh" feature that prevents row hammer without a performance or power consumption hit.
[Bitcloud] Using WDT as an interrupt generator - Page 1
Forum section: electronics / general

author: danergo
author_rank: Regular Contributor
timestamp: October 24, 2016, 08:36:22 pm
content: Hello guysI'm using an ATMEGA256RFR2 and regarding WDT, I stucked in a bit.I wanted to use the Interrupt mode or the "Interrupt and System Reset Mode". (Datasheet page 218).Bitcloud has its own WDT functions.I setup first a callback with HAL_RegisterWdtCallback(afunction);And then I start the WDT with HAL_StartWdt(WDT_INTERVAL_8000);In the "afunction" I restart the WDT with HAL_StartWdt(WDT_INTERVAL_8000); again.This is needed because as per the datasheet, in the Interrupt and System Reset Mode, the first WDT overflow will generate an interrupt, and the second one will reset the IC. But if I set again the WDIE, the next one will also generate the interrupt. And HAL_StartWdt(...) sets this WDIE in the register.However, my chip keeps restarting itself.Do you have any idea, what could be the reason of this?Thank you.

author: ataradov
author_rank: Super Contributor
timestamp: October 24, 2016, 11:48:39 pm
content: Quote from: danergo on October 24, 2016, 08:36:22 pmYou start WDT once and for all. In the interrupt you need to call HAL_ResetWdt() to extend the timeout.

author: danergo
author_rank: Regular Contributor
timestamp: October 27, 2016, 06:43:07 am
content: It seems the callback is not getting executed.Does not matter if I call HAL_StartWdt or HAL_ResetWdt in the callback, the chip restart in every 8 seconds.Registration should be as easy as this, right?HAL_RegisterWdtCallback(afunction);Thanks

author: ataradov
author_rank: Super Contributor
timestamp: October 27, 2016, 08:09:06 pm
content: It looks like you will actually have to change WDT code. Apparently when WDE bit is enabled in WDTCSR, then reset action is triggered on IRQ exit and manual restart does not help.

author: dannyf
author_rank: Super Contributor
timestamp: October 28, 2016, 02:49:06 pm
content: QuoteI have never used wdt as a timer on your particular chip but have done similar things on other chips - latest being a lm3s811.Two words of caution:1. WDT is a very valuable resource to be wasted on something this trivial. There is no other mechanism on a typical mcu that will trigger a reset with simple passage of time, but plenty of peripherals to measure time.2. WDT in my view is a terrible timing device. it is generally not accurate and its "in-accuracy" varies with temperature / voltage a lot.So I would suggest that you do NOT use it for timing purposes.If you do, maybe coding the registers directly is the way to go.

author: Jeroen3
author_rank: Super Contributor
timestamp: October 28, 2016, 09:06:39 pm
content: What is that HAL stuff doing there?There are literally just3 bits and a prescalerin a single register.If you read the manual you'll see that it has many exceptions regarding the use of the WDT.Your use is not standard. Therefore it will need a non-standard init.One of them is that you can't clear the WDE when WDRF is true.If you are in the WDT interrupt, and don't clear the right bits. You chip will reset upon return.
CCS remote debugging - Page 1
Forum section: electronics / general

author: blueskull
author_rank: Unknown
timestamp: October 26, 2016, 03:42:40 am
content: Hi all,Is there any way to run a CCS debugging agent remotely on a server which connects to actual hardware, from a laptop connected through WiFi?The reason I want to do so is because the target board may see 5kV or even higher upon some serious failure (the design is a 1MW power device test bed). Though I quadruple isolated things with UL certified, reinforce isolated digital isolators and power modules, I just do not want to risk my life operating a laptop connected to a 5kV, 200A test bed fed directly from 2.3kV distribution panel.Here I have 2 possible ideas:1. using any Linux board and setup USBIP, then connect the virtual USB from my laptop.2. run a true CCS debugging agent (if TI has one) on an x86 Linux/Win10 board and connect it from my laptop (if it supports remote debugging).I know route 1 is feasible, but I do not know how bad the latency and speed will be. I would prefer route 2, but I do not know if TI has such offerings.I would like to hear your opinions about remote debugging (or at least, programming) an F28377S.Thanks

author: newbrain
author_rank: Super Contributor
timestamp: October 26, 2016, 07:08:13 am
content: At lest forMSP432, there is a Windows executable named GdbTiAgent that can be launched by specifying the port and board config file.It's tucked away in some tool folder in the CCS install: can't help more, as I am 3000km away from the machine I have it on.It's not well documented, but it works, with some effort (see alsothis post).It should support other debug interfaces (xds100?) and processors in addition to xds110.A listening port can be specified with -p nnnn and a conf file with -fIt's very bare-bone, not rich as, say OpenOCD but you can set breakpoints, and IIRC tracepoints, run/stop and do general gdb stuff.Then you migth have to fool CCS in talking to it, or use a generic, gdb supporting, IDE.

author: kaz911
author_rank: Super Contributor
timestamp: October 26, 2016, 09:11:28 am
content: you can use Ethernet debuggers like XDS 220 or XDS560 -http://www.spectrumdigital.com/ethernet/There used to be a couple of Wireless JTAG debug interfaces (Blackhawk 510W & Olimex) but both are out of production.

author: Fred27
author_rank: Unknown
timestamp: October 26, 2016, 09:46:18 am
content: Why not run CCS on the machine connected to the device and use a remote desktop client to connect your laptop to the remote machine? Perhaps not as elegant, but quicker and simpler.Sent from my Nexus 6 using Tapatalk

author: kaz911
author_rank: Super Contributor
timestamp: October 26, 2016, 09:46:34 am
content: are you sure you can't disable the internal XDS100 and solder a connector on to the board? If it is a LaunchPad board - most of them have the option. For ARM 20 pin heard - TMS/TDI/GND/3.3V/TDO/TCKFor 14 pin TI header TMS/TDI/TDIS/VTRef/TDO/TCK/GNDBut which board are you using with embedded XDS100?

author: ebclr
author_rank: Super Contributor
timestamp: October 28, 2016, 05:31:45 am
content: Use ccs cloud and team viewer or windows remote
New ARM cores... - Page 1
Forum section: electronics / general

author: westfw
author_rank: Super Contributor
timestamp: October 27, 2016, 09:58:28 am
content: ARM announced (presumably as part of ARM TechCon, which was this week in California) two new microcontroller (Cortex-M) cores based on the ARMv8-M architecture: Cortex-M23 and Cortex-M33. They're touting security enhancements. Apparently the v8-M architecture was announced last year in higher-end CPUs, but I didn't notice because I pay less attention there :-( It looks like the M23 is M0+-like (with additions), and the M33 is M4-like (DSP, FPU)https://community.arm.com/groups/processors/blog/2016/10/25/cortex-m23-and-cortex-m33-security-foundation-for-billions-of-devices

author: legacy
author_rank: Super Contributor
timestamp: October 27, 2016, 12:26:29 pm
content: interesting

author: jnz
author_rank: Frequent Contributor
timestamp: October 27, 2016, 04:31:59 pm
content: So much for the super easy to understand naming convention! M0-7EDIT: It did last 12 years, so that's pretty impressive anyhow.

author: richardman
author_rank: Frequent Contributor
timestamp: October 27, 2016, 09:01:08 pm
content: whatever happened to M2, M5 and M6? ;-)

author: andersm
author_rank: Super Contributor
timestamp: October 27, 2016, 09:50:49 pm
content: Quote from: richardman on October 27, 2016, 09:01:08 pmThe same as A18-A31, and A36-A52 and so on.

author: westfw
author_rank: Super Contributor
timestamp: October 27, 2016, 11:12:35 pm
content: QuoteTheir naming conventions have always sucked. "Our ARM9TDMI with architecture ARMv4T is old but faster than the CM0 with ARMv6-M, but not so much like CM4 with ARMv7E-M. Use a CA32 with ARMv8A for real performance, but CM23 with ARMv8-M is our low-power entry."

author: richardman
author_rank: Frequent Contributor
timestamp: October 28, 2016, 05:27:12 am
content: Quote from: westfw on October 27, 2016, 11:12:35 pmWell, they are British and this sounds like a Monty Python sketch
TiniJava S390, vintage topic ~2001 - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: October 26, 2016, 12:49:18 pm
content: around 2001 Electronics World issued a few articleson Dallas Semiconductor (Maxim)'s new technologyand for a long time they kept the curiosity of readersin the direction of tini-java/390 platformit was cheap and small, Java mixed with C/C++TINI (for TIny Network Interface) isa complete TCP/IP node with a Java JVMall on a 50 USD SIMM moduleproduced by Dallas SemiconductorThe controller is the DS80C390.and it includes, all on board:FlashNVRAMEthernetRS232CANbus1wirebus iButtonJava JVMThe Programming was mainly in a subset of javahere, a few examplesCode:package hello_first;import com.dalsemi.comm.*;import com.dalsemi.system.*;import com.dalsemi.jellybeans.*;public class hello_world{// our default constructorpublic hello_world(){}// a method we are addingstatic void PrintHello () throws Exception{System.out.println("hAllo World from TINI");}public static void main(String[] args){hello_world hello_world1 = new hello_world();try{System.out.println("My First Program Starting");hello_world1.PrintHello();System.out.println("Normal Exit");}catch (Throwable e){System.out.println("Exception");System.out.println(e);}}}hAllo worldSends hAllo world blinkig the CPU LED,with echo of the command line argsThis code has been tested to work with Tini-v1.0Code:package flash_led;import com.dalsemi.comm.*;import com.dalsemi.system.*;//import com.dalsemi.jellybeans.*;public class flash {public flash() {}public static void main(String[] args) {//TINIOS is a static method and can't be instantiated.//TINIOS OS = new TINIOS(); //get a reference to the TINI OSbyte LEDselect = com.dalsemi.system.BitPort.Port3Bit5; //set LEDSelect to selection code for the CPU status LED D1BitPort LEDdrive = new com.dalsemi.system.BitPort(LEDselect); //get a reference to TINI CPU P3.5while (true){ // foreverLEDdrive.clear(); // LED offTINIOS.sleepProcess(1000); // wait for 1 secondLEDdrive.set(); // LED onTINIOS.sleepProcess(1000); // wait for 1 second}}}Flash TINI LEDThis program flashes TINI's LED D1, the CPU LED on P3.5.This is also the internal 1-wire signal and the 16X IrDA clock,so some values of flash timing will probably conflictwith other uses of P3.5.CPU status LED(D1) is connected to CPU.port3.bit5This code has been tested to work with Tini-v1.0~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~The programming requires a JDKand a special program which convertsthe java bytecode into tinijava codeonce you have compiled by javacyou have to invoke "jump51"then you can download the binarythrough ftp to the remote boardmore than 10 years gone since thenanyone enjoyed the TiniJava party?anyone is still playing with it?let me know

author: legacy
author_rank: Super Contributor
timestamp: October 26, 2016, 04:36:44 pm
content: my toy

author: legacy
author_rank: Super Contributor
timestamp: October 30, 2016, 10:24:48 pm
content: Tini JavaTM Platform, v 1.16API Specification@ MIT dot edu
MachXO2. -Initial state of registers - Page 1
Forum section: electronics / general

author: ale500
author_rank: Frequent Contributor
timestamp: October 27, 2016, 04:59:20 am
content: I was wondering which is the initial state of the registers for MachXO2 devices. I know that for Xilinx Spartan 3, you can choose the initial state as 1 or 0 but how about the MachXO2 ?Did someone make of the the internal GSR ?
Is there a software tool that can program ATSAMD21 (Xplained) boards in linux? - Page 1
Forum section: electronics / general

author: XFDDesign
author_rank: Frequent Contributor
timestamp: October 26, 2016, 02:16:03 pm
content: Getting a friend setup with the CortexM0 from Atmel, but he's linux only. Traditionally he's used AVR DUDE for Atmegas, but AVR Dude doesn't appear to have ATSAMD21 support. Does anyone know of a linux based utility for programming the ATSAMD21 devices, specifically on the XplainedPro platform?Thanks!(Forum searching revealed nothing on "ATSAMD21 Linux programming," just a ton of LINUX results)

author: andersm
author_rank: Super Contributor
timestamp: October 26, 2016, 02:52:41 pm
content: OpenOCDfor one.

author: Kilrah
author_rank: Unknown
timestamp: October 26, 2016, 03:00:17 pm
content: Atmel's own tool for programming their ARM micros is SAM-BA and is available for Linux.http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx

author: XFDDesign
author_rank: Frequent Contributor
timestamp: October 26, 2016, 06:18:45 pm
content: Quote from: Kilrah on October 26, 2016, 03:00:17 pmWhen I found this, it reads as only taking SAM-A5, M3, M4 M7 and M9 micros, not their C/D/E/G/L/S/V series. Is this not the case?

author: Kilrah
author_rank: Unknown
timestamp: October 26, 2016, 06:34:39 pm
content: Well I went on the ATSAMD product page and the "Tools" tab links to it, so I guess they just didn't update the description...

author: technix
author_rank: Super Contributor
timestamp: October 26, 2016, 06:46:22 pm
content: I think the open-source bossa package can do it too? I think Arduino folks used that.

author: ataradov
author_rank: Super Contributor
timestamp: October 26, 2016, 07:07:20 pm
content: Self promotion -https://github.com/ataradov/edbg

author: dannyf
author_rank: Super Contributor
timestamp: October 26, 2016, 10:55:20 pm
content: Run windows from within linux and then go from there.No kidding: I have seen people doing this more than once.

author: Franc
author_rank: Regular Contributor
timestamp: October 26, 2016, 11:57:26 pm
content: Alex, do you have a tutorial for code and debug in Linux with your EDBG debbuger?Regards

author: ataradov
author_rank: Super Contributor
timestamp: October 26, 2016, 11:59:01 pm
content: Quote from: Franc on October 26, 2016, 11:57:26 pmIt is not a debugger, it is just a programmer.
M48Z58-70PC1 - Page 1
Forum section: electronics / general

author: kardacz
author_rank: Contributor
timestamp: October 26, 2016, 03:30:28 pm
content: Hello everyone! I have to reprogram EEPROM: M48Z58-70PC1 (new) with a programmer: TL866CS, and I can not find it in the list; even manually, it appears to me to me: "unknown." How to do??? Someone an idea? (I own the original memory). Thank you for your help!
Lightweight Mesh software stack, in real life - how many nodes max? - Page 1
Forum section: electronics / general

author: ddemarco
author_rank: Newbie
timestamp: October 21, 2016, 01:37:04 pm
content: Hi guys,I just wanted to know if any of you have real-life experience with LwMesh. In particular, I'm set to determining if a network of 500-1000 nodes would work, considering 915 MHz radios and all nodes being repeaters sending a short packet of information every 10-15 minutes. Considering its simplicity, it seems like a great choice, but I have seen no real-life performance measurements to use as a basis for this research.Cheers,Diego

author: ataradov
author_rank: Super Contributor
timestamp: October 21, 2016, 04:25:04 pm
content: I would not use 915 MHz radios. If you have a big mesh network, the distance is rarely a problem, but overall bandwidth is more important.You also need to specify the direction of traffic. Are they all sending this packet towards one destination (gateway)?In general, with almost any mesh network, it is very easy to get 100 nodes, you need to work a bit to get 200 and it gets much harder from there.A lot of things can be simplified by thinking about your application and making most of the sensor nodes to be non-routing nodes. There are other optimizations possible, but it all depends on a specific scenario.I can tell you for sure, out of the box you will not get 1000 or even 500 nodes. With any stack.
PIC Reference Clock Module Buffer (SOLVED) - Page 1
Forum section: electronics / general

author: jpanhalt
author_rank: Super Contributor
timestamp: October 20, 2016, 03:02:04 pm
content: (SOLVED)I am considering using the reference clock of a PIC12F1840 to drive another (mid-range) PIC as an external clock source. Duty cycle is 50%; divider is currently set to 32.Is a buffer advised or required?For synchronization of the chips, should the buffer be inverted or in phase? The datasheet shows an inverter when using a generic external clock source but is silent on this specific application. Since my source for the reference clock is the system clock, it seems to me that inverting the reference clock would put the second chip out of phase. I don't believe the phase relationship will be important. I would just like some clarity on that decision should I need synchronization.Regards, John
HC-05 PCM AT commands - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: October 17, 2016, 10:01:24 am
content: HiCan We use the PCM in HC-05 module for sending and receiving audio PCM data? what are the AT commands for them,I could not find any info about that in the module datasheetAlso it has used a CC2580 chip, Do we have a datasheet for it?

author: linux-works
author_rank: Super Contributor
timestamp: October 19, 2016, 02:55:12 pm
content: that's the serial i/o chip, right?if so, it is not meant for anything other than serial low-speed i/o.I've heard you can reflash it and get access to lower layers but that's real hacker territory.for audio, you really want an apt-x enabled codec pair or the audio will sound about the same as fm radio or cassettes (ie, garbage by today's standards).

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: October 19, 2016, 05:11:42 pm
content: I want something with Audio capability and USART at the same time, do you know or recommend something absolute cheap?
ICE40, help with PLL in VHDL  - Page 1
Forum section: electronics / general

author: aturcitu
author_rank: Newbie
timestamp: October 17, 2016, 02:37:01 pm
content: Hello,I am having a bad time trying to instantiate PLLs in my ICE40devBoad. It is the first time I am doing this and all the documentation and the Wizard included in IceCube2 is in Verilog.Since my project is in VHDL I am trying to figure out how would this be in VHDL.Basically I need to generate a 25MHZ clock fro ma 12 MHZ one. In verilog this would be achieved by this codeSB_PLL40_CORE #(.FEEDBACK_PATH("SIMPLE"),.PLLOUT_SELECT("GENCLK"),.DIVR(4'b0001),.DIVF(7'b1000010),.DIVQ(3'b100),.FILTER_RANGE(3'b001),) uut (.REFERENCECLK(pclk),.PLLOUTCORE(clk),.LOCK(D5),.RESETB(1'b1),.BYPASS(1'b0));Could anyone help me getting this working in VHDL.Thank you in advance

author: pix3l
author_rank: Regular Contributor
timestamp: October 19, 2016, 07:27:49 am
content: Are you using Lattice Diamond? If so, you can use the IPexpress to generate the VHDL files

author: ale500
author_rank: Frequent Contributor
timestamp: October 19, 2016, 09:28:04 am
content: The ICE parts are supported in Diamond, that's why he is using IceCube2.Does ICECube2 support mixed language projects ? if so, you can use the verilog module directly.What you are missing is the generic map (just a guess, I'm a verilog guy).Code:GENERIC MAP (FEEDBACK_PATH => "SIMPLE",PLLOUT_SELECT =>"GENCLK",DIVR => "0001",DIVF => "1000010",DIVQ => "100",FILTER_RANGE => "001")
I wonder if something like a "universal ICP/ISP development kit" makes sense - Page 1
Forum section: electronics / general

author: technix
author_rank: Super Contributor
timestamp: October 16, 2016, 04:46:26 pm
content: I have a whole bunch of debug probes and in-circuit programmers hanging on my bench, and I am in need of some more for my Bluetooth module that uses CSR and TI chipsets. So I wonder if it it is possible to combine all those into one single unit with adequate hardware resources?The idea is that I would use an ATmega32U4 as the core chip, offer onboard bidirectional level shifter in the form of an array of MOSFETs, and provide SPI, I2C and UART (as alternative to GPIO pins) through a 10-pin connector that is compatible with the 10-pin AVR ICSP pinout. The "universial debug probe" would be able to function as whatever tool needed for the task, and if someone bothered to reverse engineer the protocol, be compatible with the original hardware.On the physical side the probe can have the same board dimensions as the AVRISP mkII and fit in the same enclosure.

author: ajb
author_rank: Super Contributor
timestamp: October 17, 2016, 04:42:19 pm
content: Seems like it would be an awful lot of work just to get a couple of small boxes off of your bench. Particularly if you intend to provide debug support as well as ISP, since then you have worry about integration with toolchains.

author: technix
author_rank: Super Contributor
timestamp: October 17, 2016, 05:52:09 pm
content: Quote from: ajb on October 17, 2016, 04:42:19 pmIt does not make much sense if you are having a workbench. However what if you are on the go and lugging half a dozen of debug probes around is becoming problematic, for example if you are on the trade show floor, while the project you are showing calls for quite a few debug probes to show off?
Atmel LwMesh: How is the MAC layer implemented? - Page 1
Forum section: electronics / general

author: agm30
author_rank: Newbie
timestamp: October 17, 2016, 04:33:00 am
content: I'm confused about the implementation of MAC layer on Atmel's LwMesh Posts by @alexru says that1. "LwMesh uses IEEE 802.15.4 physical frames, but it does not follow IEEE 802.15.4 MAC specification, so it is "worse" than the real MAC in this sense. But LwMesh implements mesh routing, so it is "better" than plain MAC in that respect" .2. "LwMesh uses standard MAC header (to facilitate hardware frame filtering), but does not respond to the command frames"3. "You don't need MAC with LwMesh"Now the MAC protocol usually provides the fully functionalities1. Framing - define the frame format and perform data encapsulation2. Medium access - control which device can access the medium, avoid collisions etc using some modification of CSMA/CA3. Reliability - ensure successful transmission through ACKs4. Flow control - moderate buffers5. Error control - error detection etc.Questions.1. How much of this does the LwMesh do?2. Why doesn't LwMesh need MAC?3. How is it handling channel access?4. Can LwMesh be classified as a cross-layer protocol?The LWM architecture shows a HAL, PHY and then directly a NWK layer. The code base also has no mention of MAC layer.Can somebody give a definitive answer to this? Thank you.

author: ataradov
author_rank: Super Contributor
timestamp: October 17, 2016, 05:10:42 am
content: Quote from: agm30 on October 17, 2016, 04:33:00 amThat is if you read a lot of school books. Actually all of that is done by the PHY / radio itself. MAC is a fancy abstraction on top of that, from people that like fancy abstractions. Separate MAC layer is needed when you try to specify a universal interface for any number of higher layers. In this case IEEE designed MAC interface and they don't care who uses it. LwMesh is all in one package, so MAC layer can be omitted.Doing layers - is how you get bloat and happy academics.Quote from: agm30 on October 17, 2016, 04:33:00 amAll of the above.Quote from: agm30 on October 17, 2016, 04:33:00 amThough CSMA/CA performed by the transceiver.Quote from: agm30 on October 17, 2016, 04:33:00 amClassifications are mostly pointless, so yeah, sure, why not.Quote from: agm30 on October 17, 2016, 04:33:00 amNetwork layer is handling everything.
Whats the fastest way to count on an FPGA? - Page 1
Forum section: electronics / general

author: frogmaster
author_rank: Contributor
timestamp: October 16, 2016, 05:04:47 pm
content: Hi,I'm asking partially out of curiosity. I got triggered by some video showing how to typically implement a counter only with two JK-flip-flops and that got me thinking.What is the most efficient, i.e.fast, way to 'simply' count up with an FPGA, maybe without a clock. Especially interesting would be solutions that are not really obvious ones and work due to the way CLBs are laid-out or something.I've seen Gray Counters perform better than typical HDL implementations and also some weird Carry-Chain stuff.Any ideas welcome.Regards

author: hamster_nz
author_rank: Super Contributor
timestamp: October 16, 2016, 06:05:06 pm
content: A lot depends on your application - what are you wanting to counting and why?The quickest way to count 'something' is to combine various techniques. A very fast 'something' to prescale the input, followed by a longer (slower) counter to give you lots of digits. For example, you might use a high speed transceiver to capture the input 40 bits at a time, and then have logic behind that to count the number of 0-to-1 transitions.The CLB logic must be quicker than the clocking network that supports it, so it is usually the clocking network's performance is the limiting factor - if it is something else like carry chain length then you are doing it wrong. This also hints that if you are only CLBs for your counter you should try to avoid using the logic's clocking networks at the very fast part of the counter - i.e. maybe route the input signal directly onto a flip-flop's CLK input, rather than through clock buffers.

author: frogmaster
author_rank: Contributor
timestamp: October 17, 2016, 04:53:04 pm
content: Thanks for your reply!Quote from: hamster_nz on October 16, 2016, 06:05:06 pmNothing specific, really. I'm thinking about measuring a signal (not necessarily a periodic one, but maybe) that's near 800MHz+ on lower end parts. Just trying to make sense of it. I've seen people building TDCs and so on, wondering whats possible in that regard.
Help | Connecting NodeMCU 12-E to Java Websocket - Page 1
Forum section: electronics / general

author: WisterDesigns
author_rank: Newbie
timestamp: October 17, 2016, 05:48:13 pm
content: Hey Everybody,I have made a websocket using GlassFish server 4.1.1 in Java, I'm trying to connect the ESP8266 to the Websocket, This is the server adress:Code:"ws://192.168.1.106:8080/JavaSmartHome/serverendpointdemo"But it doesn't work for me, the library isn't that good and I don't really know how to do it. How to create a code which will send data to the server and that will be able to get data as well.Thanks!
ADC pins on MKW40Z BLE mcu from NXP: where are the differential pins? - Page 1
Forum section: electronics / general

author: pix3l
author_rank: Regular Contributor
timestamp: October 16, 2016, 06:37:39 pm
content: Dear fellow humanoids,I am looking into using the MKW40Z micro from NXP (see  for product page) for a new project. It seems to be quite comprehensive: BLE, 16bit ADC and a lot of peripherals. Since I would be using it's ADC I was looking where to connect my signals to. The reference manual  states on page 503 that I can connect up to four differential pairs (which is exactly what I want to do). However the problem is that I cannot figure out which pins I can connect my signals to. The datasheet  only states (see page 61) one differential pair on pins 24 and 25.What am I not seeing/reading correct?http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/w-series-wireless-m0-plus-m4/kinetis-kw40z-2.4-ghz-dual-mode-ble-and-802.15.4-wireless-radio-microcontroller-mcu-based-on-arm-cortex-m0-plus-core:KW40Z?fpsp=1&tab=Documentation_Tab#nogohttp://www.nxp.com/files/32bit/doc/ref_manual/MKW40Z160RM.pdf?fasp=1&WT_TYPE=Reference%20Manuals&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=pdf&WT_ASSET=Documentation&fileExt=.pdfhttp://www.nxp.com/files/32bit/doc/data_sheet/MKW40Z160.pdf?fasp=1&WT_TYPE=Data%20Sheets&WT_VENDOR=FREESCALE&WT_FILE_FORMAT=pdf&WT_ASSET=Documentation&fileExt=.pdf
Debugging with Chipscope - Page 1
Forum section: electronics / general

author: Deepika
author_rank: Newbie
timestamp: October 14, 2016, 11:19:06 am
content: Hi,I am trying to debug my ALU design in FPGA. I am using trigger immediate option after downloading the bit stream to FPGA. But the chipscope never displays the signal values starting from program counter=0 and the waveform starts from some other value of program counter. How to resolve this issue, I need to capture real time data.Thanks