hybridfree/eevblog-posts huggingface dataset:
Need Help Setting Internal Osc to 64MHz 18Fx5K22(Solved) - Page 1
Forum section: electronics / general

author: SuzyC
author_rank: Frequent Contributor
timestamp: June 16, 2015, 03:25:37 am
content: I must be missing something, the code execution I see is very close to what I expect from an external 20MHz Xtal w/o PLL.Please tell me what's wrong or missing!//---------------------------------------------------------#include <htc.h>#include <string.h>#include <stdio.h>#include <math.h>#include <P18F25K22.h>//P.S. I am using Hi-Tech Pro for PIC18 9.80.#pragma config IESO=1; //osc switch over enabled__PROG_CONFIG(1,0xA800); //0xB80) but 0xA800 Sets PRICLKEN as well__PROG_CONFIG(2,0x0); //WDT BOREN are off__PROG_CONFIG(3,0xBD00); //PBADEN disabled PORTB<5:0>are I/O not A2d at reset__PROG_CONFIG(4,0x85);__PROG_CONFIG(5,0xC00F); //CONFIG4 to CONFIG7 set Read and Write protects and they are not protected__PROG_CONFIG(6,0xE00F);__PROG_CONFIG(7,0x400F);Main(){OSCCON=0x72 //Selects Int Osc Block Clk as internal system clock sourceOSCTUNE=0xDF;//Highest Internal OSC Freq OSCTUNE<0:5> set freq. PLLEN=bit6 Freq. set to max =16MHzPLLEN=1; //Enables PLL Fosc=Fosc*4 up to 64MHz with Internal 16MHz osc.PLLRDY=1; //no effect?, selects PLL as System Clk source.... La de da...}I found the problem, it seemsOSCCON must be set to 0x70 to use the clock specified with CONFIG1 set as shownto allow the PLL to work, but this is not obvious from the specsheet instructions and very difficult for even an experienced HW/SW guy to know what simple steps to follow.I am no newbie, but I couldn't get X64 operation to work and I think the specsheet could make this easy and quick to accomplish.One should be able to do this with just one quick look at properly written specsheet!.I wasted much too much time carefully reading the specsheet applicable pages very carefully over and over to no aval, but luckily I found the answer posted by someone with the same problem on the web.

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: June 17, 2015, 02:05:41 am
content: A look at the oscillator system block diagram should tell you which bits need to be set.To avoid mistakes I use symbolic names rather than raw numbers. Exactly what does __PROG_CONFIG(1,0xA800) do? According to MPLABX it is FOSC = INTIO67 (internal oscillator block), PLLCFG=OFF, PRICLKEN=ON, FCMEN=OFF, IESO=ON. Having PRICLKEN on when the internal oscillator block is selected seems pointless, since the primary (external) oscillator's output is going nowhere.

author: SuzyC
author_rank: Frequent Contributor
timestamp: June 17, 2015, 11:39:57 am
content: Thanks Bruce Abbot, I turned of PRICLKEN, but it doesn't make any difference. I thought that the primary clock was the clock selected as being the Internal Osc Block was enabled, since I don't want to select the secondary clock source.
ADC LPC1768 . simple question - Page 1
Forum section: electronics / general

author: navidrct
author_rank: Regular Contributor
timestamp: June 16, 2015, 09:45:55 am
content: hithis is my codeCode:#include "LPC17xx.h" // Device header#include "GPIO_LPC17xx.h" // Keil::Device:GPIOuint32_t voltag1 = 0 ;uint32_t voltag2 = 0 ;volatile uint32_t adstat;int blink=1;int main(){//Config timerLPC_TIM1->MCR=2;LPC_TIM1->MR0=20000000; //Match ResgisterLPC_TIM1->TCR=1;LPC_TIM1->EMR = 0x00000030 ;//Config ADCLPC_PINCON->PINSEL1 |= (1 << 14) | (1 << 16); // connect pin to ADCLPC_SC->PCONP |= ((1 << 12));//enable power of ADCLPC_ADC->ADCR = 0x06202001; //initialaze ADCLPC_ADC->ADINTEN = 0x00000100; // global interupNVIC_EnableIRQ(ADC_IRQn);GPIO_SetDir(3,25,GPIO_DIR_OUTPUT);while(1){}}void ADC_IRQHandler(void){adstat = LPC_ADC->ADSTAT; /* Read ADC clears interrupt */blink++;GPIO_PinWrite(3,25,blink%2);voltag1 = (LPC_ADC->ADGDR >> 4) & 0xFFF;//voltag2 = (LPC_ADC->ADDR1 >> 4) & 0xFFF;}when i use LPC_ADC->ADGDR it work fine but when i use LPC_ADC->ADDR1 its not working , why?

author: navidrct
author_rank: Regular Contributor
timestamp: June 16, 2015, 10:02:51 am
content: i used MAT for ADC interupand when i use LPC_ADC->ADGDR everything works finebut when i use LPC_ADC->ADDR1 for reading its not working and not change with MAT edge

author: nctnico
author_rank: Super Contributor
timestamp: June 16, 2015, 10:28:42 am
content: Did you check the errata sheet?

author: nctnico
author_rank: Super Contributor
timestamp: June 16, 2015, 11:59:56 am
content: You need to use register ADDR0 instead of ADDR1!

author: navidrct
author_rank: Regular Contributor
timestamp: June 16, 2015, 12:29:55 pm
content: Quote from: nctnico on June 16, 2015, 11:59:56 ami knew that. its my mistake in here to wright it as onethanks

author: nctnico
author_rank: Super Contributor
timestamp: June 16, 2015, 02:53:46 pm
content: So back to the errata sheet... IIRC there are some limitations when using a timer to start an ADC conversion but this is highly device specific.
Bricked my first AVR - Page 1
Forum section: electronics / general

author: vini_i
author_rank: Regular Contributor
timestamp: June 18, 2015, 03:03:13 am
content: i've been using arduino for a bit now but i'm looking to to do more. so i purchased an Atmel-ICE and started learning atmel studios. I wrote a simple LED blinking program. i eventually and successfully programmed the Atmega328p micro on an arduino board and got pin 13 (B5) to blink correctly. then i switched the programmer to debugWire mode and tried to start a debug session. atmel studios told me i need to enable the DWEN fuse which i confirmed. the system then told me that a debug session could not be started. after that i can't communicate with the chip at all and with any tool. every time i try to program i get this error message.what did i do wrong?how can i recover the processor?

author: sleemanj
author_rank: Super Contributor
timestamp: June 18, 2015, 04:55:38 am
content: First result.https://www.google.co.nz/#q=avr%20dwen%20fuse

author: AndyC_772
author_rank: Super Contributor
timestamp: June 18, 2015, 06:30:05 am
content: IIRC I had the same problem when I tried to set the state of the configuration fuses in the source code.

author: vini_i
author_rank: Regular Contributor
timestamp: June 18, 2015, 10:30:59 am
content: Quote from: sleemanj on June 18, 2015, 04:55:38 amthank you so much. cutting the reset jumper made everything come back to life. i was googling for hours, don't know how i didn't stumble across that.
MAX7219 - 8 Digit LED Display Module - ESP8266 - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: June 08, 2015, 11:00:22 am
content: Another very popular and videly available module, used already in many Projects before, meeting the ESP8266 ecosystemNo library dependent, simple driver implementation for MAX7219. Written in NodeMCU LUA but from now on can be easily ported in any other language.For reference:ESP8266 - MAX7219 Driver implementation

author: TJ232
author_rank: Frequent Contributor
timestamp: June 15, 2015, 11:16:06 am
content: Hello All,As somebody might find it useful, Part 2, a full detailedMAX7219 8 Digit Module Driver implementation using Arduino IDE environment:For reference:http://www.esp8266-projects.com/2015/06/arduino-ide-max7219-8-digit-display.html
whats wrong with this little code? - Page 1
Forum section: electronics / general

author: navidrct
author_rank: Regular Contributor
timestamp: June 14, 2015, 05:22:23 am
content: hiim new in ARM and Keil.i want to work with adc of lpc1768 and i wrote this code . y does not working?Code:#include "LPC17xx.h" // Device header#include "GPIO_LPC17xx.h" // Keil::Device:GPIOuint32_t voltaj = 0 ;int main(){LPC_SC->PCONP |= ((1 << 12) | (1 << 15));/* enable power to ADC & IOCON */LPC_ADC->ADCR = ( 1 << 0) |/* select AD0.0 pin */( 1 << 13) |/* freq=1M/33 */( 1 << 21)|/* enable ADC */( 1 << 24);/*start conversion*/LPC_ADC->ADINTEN = ( 1 << 8) | (1 << 0);/* global ADC enable interrupt */NVIC_EnableIRQ(ADC_IRQn);/* enable ADC Interrupt */while(1){voltaj = LPC_ADC->ADDR0;}}void ADC_IRQHandler(void){}

author: ttt
author_rank: Regular Contributor
timestamp: June 14, 2015, 10:53:10 am
content: See page 583 (Chapter 29) in the user manual which has the whole procedure outlined. Looks like you are not setting PINSEL to ADC mode. All pins are set to GPIO mode on init.

author: navidrct
author_rank: Regular Contributor
timestamp: June 14, 2015, 11:22:55 am
content: Quote from: ttt on June 14, 2015, 10:53:10 amthanks alot that was helpful

author: navidrct
author_rank: Regular Contributor
timestamp: June 15, 2015, 05:53:25 am
content: i did correct PCLKSEL now why it does not work?when i put it in burst mode it work . why?Code:#include "LPC17xx.h" // Device header#include "GPIO_LPC17xx.h" // Keil::Device:GPIOuint32_t voltaj = 0 ;uint32_t voltaj2 = 0 ;int main(){LPC_SC->PCONP |= ((1 << 12) | (1 << 15));/* enable power to ADC & IOCON */LPC_ADC->ADCR = ( 1 << 0) |/* select AD0.0 pin */( 1 << 13) |/* freq=1M/33 */( 1 << 21)|/* enable ADC */( 1 << 24);/*start conversion*/LPC_SC->PCLKSEL0 = ( 1 << 24 ) | (1 << 25);LPC_ADC->ADINTEN = ( 1 << 8) | (1 << 0);/* global ADC enable interrupt */NVIC_EnableIRQ(ADC_IRQn);/* enable ADC Interrupt */while(1){voltaj = LPC_ADC->ADDR0;}}void ADC_IRQHandler(void){voltaj2 = LPC_ADC->ADDR0;}
Integrating FreeRTOS+Trace - Page 1
Forum section: electronics / general

author: Euphyllia
author_rank: Newbie
timestamp: June 11, 2015, 01:12:13 pm
content: I've inherited a FreeRTOS project running on a Microblaze softcore and I'm trying to get the FreeRTOS+Trace functionality to work.I've followed the instructions here:http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_Trace/RTOS_Trace_Instructions.shtmland my project won't compile. The offending item seems to be the #include for the trcKernelPort.h file at the end of FreeRTOSConfig.h. With the #include for trcKernelPort.h a recompile throws a bajillion errors such as:c:\xilinx\14.7\ise_ds\edk\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/include/sys/types.h:263: Error: unknown opcode "typedef"c:\xilinx\14.7\ise_ds\edk\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/include/sys/types.h:264: Error: unknown opcode "typedef"c:\xilinx\14.7\ise_ds\edk\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/include/stdio.h:50: Error: unknown opcode "typedef"c:\xilinx\14.7\ise_ds\edk\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/include/stdio.h:55: Error: unknown opcode "typedef"c:\xilinx\14.7\ise_ds\edk\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/include/stdio.h:171: Error: unknown opcode "file"c:\xilinx\14.7\ise_ds\edk\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/include/stdio.h:172: Error: unknown opcode "char"c:\xilinx\14.7\ise_ds\edk\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/include/stdio.h:173: Error: unknown opcode "int"c:\xilinx\14.7\ise_ds\edk\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/include/stdio.h:174: Error: unknown opcode "int"c:\xilinx\14.7\ise_ds\edk\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/include/stdio.h:175: Error: unknown opcode "file"c:\xilinx\14.7\ise_ds\edk\gnu\microblaze\nt\bin\../lib/gcc/microblaze-xilinx-elf/4.6.4/../../../../microblaze-xilinx-elf/include/stdio.h:176: Error: unknown opcode "void"Any ideas as to what I'm breaking? Thanks for any help.

author: Marco
author_rank: Super Contributor
timestamp: June 11, 2015, 01:53:05 pm
content: At a guess ..."Also depending on the port and development environment it may be necessary to use the pre-processor to prevent the configuration file from being included from assembly files. For example, in IAR this can be done as follows..."http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_Trace/RTOS_Trace_Instructions.shtml#ifndef __ASSEMBLER__ might work.

author: Euphyllia
author_rank: Newbie
timestamp: June 11, 2015, 02:14:57 pm
content: Yep that got it! Still a few compile problems to hunt down but that fixed the main issue. Thanks!
ATF1500/ATF2500 - Page 1
Forum section: electronics / general

author: Jok
author_rank: Newbie
timestamp: June 09, 2015, 08:33:57 am
content: Hi,anyone know about a cheap programmer that will happily take ATF1500 and ATF2500 DIP series Atmel CPLD's?The only ones I've looked at so far are in the range of 500-1000 USD and that seems a little steep for a few one off tests.Regards

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: June 11, 2015, 12:28:57 am
content: The ATF1500 and ATF2500 were programmed with a proprietary algorithm that Atmel has never publicly released. Only a few programmers support them, and they are expensive because they were designed to work with many different device types. You might be able to make a compatible programmer using the information found athttp://matthieu.benoit.free.fr/120.htm, but it's probably not worth the effort.Later versions of the ATF15xx series use jtag protocol, so they can be programmed with an Altera Byte Blaster or equivalent. Some of these chips are still available, though not in DIP packages. You could put them on PLCC or TQFP to DIP adapter boards for 'one-off' testing.
has anyone already played with Moates Ostrich2 ? (eprom emulator) - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: June 10, 2015, 12:41:18 pm
content: hihas anyone already played withMoates Ostrich2?It's an USB driven Eprom emulator, able to emulate ROMs like { 27C32, 27C64, 27C128, 27C256, 27C512, 27C010, 29F040 }News, after 3 days of evil debugging, I have a working version of the softwareonce you have achieved the right feeling,it's definitively a marvelous device, very fast, and very comfortable !edit: removed, the fun is already rolling on the roll-your-own category()If you have experience with this device, of if you want to see a piece of working code, PM me

author: krivx
author_rank: Frequent Contributor
timestamp: June 10, 2015, 11:59:20 pm
content: Quote from: legacy on June 10, 2015, 11:01:49 pm$175 + 3 days to get it working? That's entering roll-your-own category
Robo Cockroach. new use for ESP8266 - Page 1
Forum section: electronics / general

author: firepower
author_rank: Regular Contributor
timestamp: June 07, 2015, 04:35:38 pm
content: After seeing this, I am sure the amature mad scientist can do better using ESP8266 to replace the discrete boards using in the video.https://backyardbrains.com/experiments/roboRoachSurgeryLooks like there already using a bluetooth module, but chraging $100 for a $5 devicehttps://backyardbrains.com/products/remotehttps://backyardbrains.com/experiments/files/RoboRoachExperiment-NeuralInterfaceSurgery.pdf

author: bingo600
author_rank: Super Contributor
timestamp: June 08, 2015, 08:00:49 pm
content: The Roach is going to need a trailer for the ESP8266 battery/Bingo

author: tyguy2
author_rank: Unknown
timestamp: June 09, 2015, 09:29:17 pm
content: I believe he used a modified version of this:https://www.hexbug.com/mechanical/spider/I've seen a few people mod the circuitry on these with some 555 timers.

author: firepower
author_rank: Regular Contributor
timestamp: June 10, 2015, 11:31:10 am
content: Hex bug seems a lot less creepy and icky
DC Motor speed control using PC - Page 1
Forum section: electronics / general

author: sirai.soft
author_rank: Newbie
timestamp: June 07, 2015, 04:57:06 pm
content: Hithis is project show you how to control DC Motor by your computerattachments:MikroC codecircuit in isisprogram//Video//=================================//project//================================http://www.mediafire.com/download/37q36ve5ycnv2ph/sp+control.rar

author: CM800
author_rank: Frequent Contributor
timestamp: June 07, 2015, 10:15:47 pm
content: Chances of that link being a virus?....

author: Len
author_rank: Frequent Contributor
timestamp: June 07, 2015, 10:36:38 pm
content: Quote from: TCWilliamson on June 07, 2015, 10:15:47 pmIt includes the source code, if you're worried.

author: sirai.soft
author_rank: Newbie
timestamp: June 08, 2015, 12:27:09 pm
content: Quote from: Len on June 07, 2015, 10:36:38 pmdon't worry this is my project It includes the source code
FLIR Lepton now at Digikey - Page 1
Forum section: electronics / general

author: macona
author_rank: Regular Contributor
timestamp: May 26, 2015, 08:58:40 pm
content: Digikey has started selling the Lepton in 25 and 50 deg FOV versions, with and without shutters and has a FLIR branded breakout for $40. Really good pricing too. No pics of the breakout, kind of curious what is on it.http://www.digikey.com/suppliers/us/flir.page?WT.v_sub=1695773&WT.mc_id=em_npa1505b.us.send&mkt_tok=3rkmmjwwff9wsroku6nmzkxonjhpfsx57+8ruks1lmi/0er3fovrpufgji4dtctni+sldweygjlv6sgfs7tbma5j2lgnwbe=&WT.z_email=2055_npa1505bi0us_mainproductlogo--1577-flir&lang=en

author: ralphd
author_rank: Frequent Contributor
timestamp: May 27, 2015, 12:59:24 pm
content: I paid $200 for my higher-resolution seek thermal usb module.

author: ivan747
author_rank: Super Contributor
timestamp: May 27, 2015, 01:02:42 pm
content: That is very interesting on FLIRs part. I think Dave and David will be happy to hear that for their project.It should make possible a lot of things that even a year ago were very hard to do.

author: jnz
author_rank: Frequent Contributor
timestamp: May 27, 2015, 04:02:23 pm
content: This has my attention...

author: bombledmonk
author_rank: Regular Contributor
timestamp: May 27, 2015, 07:37:41 pm
content: For anyone else buying this, make sure to get the Molex socket designed for the camera. The Lepton package is not recommended for hand soldering.http://www.digikey.com/product-detail/en/1050281001/WM6827CT-ND/3045224Also, all the different modules should be compatible with this socket so you can try out different modules to see which one fits your needs best.

author: neslekkim
author_rank: Super Contributor
timestamp: May 27, 2015, 08:17:52 pm
content: Or an breakout:https://www.tindie.com/products/PureEngineering/flir-lepton-thermal-camera-breakout-2/?pt=full_prod_searchorhttp://www.digikey.com/product-search/en?site=us&lang=en&v=1577&c=36&WT.z_supplier_id=1577&WT.z_page_type=SP&WT.z_page_sub_type=SS&WT.z_oss_type=Category&chp=0What is the difference between the three lepton modules ?, same resolution?

author: bombledmonk
author_rank: Regular Contributor
timestamp: May 27, 2015, 09:03:03 pm
content: They are all the same resolution, and all are limited to 9Hz due to export regulations. The difference between the current models are 25deg, 50deg, and 50deg w/shutter.

author: macona
author_rank: Regular Contributor
timestamp: May 27, 2015, 09:28:48 pm
content: From what a friend tells me that works on commercial infrared systems, thermopile sensors like used in the Seek are not nearly as good as microbolometer. The only advantage is they dont need a NUC. Well, that and they are cheaper.For those looking at the 25 degrees FOV that is a pretty tight FOV. I have a couple DRS cameras in 320x240 and 640x480 and to get an idea what 25 degrees is at about 4" from the camera I can see about a 4" circle. It is pretty tight, good for UAVs.

author: ivan747
author_rank: Super Contributor
timestamp: June 07, 2015, 09:11:19 pm
content: Quote from: macona on May 27, 2015, 09:28:48 pmYou're now on the NSA watchlist.
program and debug AVRs without a serial interface - Page 1
Forum section: electronics / general

author: ralphd
author_rank: Frequent Contributor
timestamp: June 03, 2015, 10:21:03 pm
content: I made a simple and small (18-byte + 4 byte setup) function to use the EEPROM as a circular debug log, which then can be read with the same programmer used to flash your code.http://nerdralph.blogspot.ca/2015/06/avr-eeprom-debug-log.html

author: mikerj
author_rank: Super Contributor
timestamp: June 04, 2015, 12:01:50 pm
content: Just be aware that the lengthy write time of the EEPROM could easily cause timing related bugs in your code, particularly when writing long strings.Also if you held the EEPROM log address in a separate variable rather than relying on the value in EEARL being correct, then your code could use different areas of the EEPROM for other purposes (e.g. calibration values). Obviously this would require an extra byte of SRAM.

author: ralphd
author_rank: Frequent Contributor
timestamp: June 04, 2015, 01:19:39 pm
content: For debugging timing-critical code, neither eeprom nor serial is practical. For that I'd use a logic analyzer or scope.

author: mikerj
author_rank: Super Contributor
timestamp: June 07, 2015, 10:15:27 am
content: Quote from: ralphd on June 04, 2015, 01:19:39 pmThe point I was making is that it takes so long to write to EEPROM, that even code that wouldn't normally be considered timing critical could fail. It's not a few microseconds you are tying up the micro for, it's a few milliseconds for each character which could quickly add up to many 10's or 100's of milliseconds for a string.It would be most useful for an error handler that stops the main process running completely, and then writes a message log with e.g. stack information etc.

author: nuno
author_rank: Frequent Contributor
timestamp: June 07, 2015, 12:18:47 pm
content: If the micro is so small that I can't spare even a single pin to make a dataout debug serial-something interface, I run it heavily under simulation 1st or develop in a bigger chip.But the EEPROM method can still be useful, like for logging exceptional conditions on the field for later analysis

author: ralphd
author_rank: Frequent Contributor
timestamp: June 07, 2015, 01:32:09 pm
content: I agree eeprom writes are slow. My point is that *both* serial and eeprom are slow. 9600bps takes 1ms per character vs ~3ms for eeprom writes.
Atmel chip differences - Page 1
Forum section: electronics / general

author: IvoS
author_rank: Frequent Contributor
timestamp: June 04, 2015, 12:51:56 am
content: What is the difference between "A" version and non "A" version, and why does it cost less..?http://www.mouser.com/Semiconductors/Integrated-Circuits-ICs/Embedded-Processors-Controllers/Microcontrollers-MCU/8-bit-Microcontrollers-MCU/_/N-a86lo?P=1z0z63x&Keyword=attiny44&FS=True

author: ataradov
author_rank: Super Contributor
timestamp: June 04, 2015, 01:01:48 am
content: A versions are made using finer process, so take less silicon. Non-A versions are likely to be old stock, so they are probably were purchased by Mouser at a higher price, and they want to make their money back.There should be no functional differences as long as your device is within specified ratings. I've seen boards where A version would fail if installed instead of non-A version, but in all of those cases absolute maximum ratings were exceeded (hi to all the people, who think that it is OK to overclock the micro).

author: miguelvp
author_rank: Super Contributor
timestamp: June 04, 2015, 01:09:15 am
content: Non-A seems to be older stock probably was more expensive to manufacture. Seems the A is better but I'm not going to go through the whole datasheets, but you should.A:• Operating Voltage:– 1.8 – 5.5V• Speed Grade:– 0 – 4 MHz @ 1.8 – 5.5V– 0 – 10 MHz @ 2.7 – 5.5V– 0 – 20 MHz @ 4.5 – 5.5V• Industrial Temperature Range: -40°C to +85°C• Low Power Consumption– Active Mode:• 210 µA at 1.8V and 1 MHz– Idle Mode:• 33 µA at 1.8V and 1 MHz– Power-down Mode:• 0.1 µA at 1.8V and 25°Cnon-A:• Operating Voltage:– 1.8 – 5.5V for ATtiny24V/44V/84V– 2.7 – 5.5V for ATtiny24/44/84• Speed Grade– ATtiny24V/44V/84V• 0 – 4 MHz @ 1.8 – 5.5V• 0 – 10 MHz @ 2.7 – 5.5V– ATtiny24/44/84• 0 – 10 MHz @ 2.7 – 5.5V• 0 – 20 MHz @ 4.5 – 5.5V• Industrial Temperature Range: -40°C to +85°C• Low Power Consumption– Active Mode (1 MHz System Clock): 300 µA @ 1.8V– Power-Down Mode: 0.1 µA @ 1.8V

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: June 04, 2015, 01:12:35 am
content: The A version draws less current and has an enhanced power-on reset circuit. See app note AVR526.

author: matseng
author_rank: Frequent Contributor
timestamp: June 04, 2015, 02:31:08 am
content: Quote from: miguelvp on June 04, 2015, 01:09:15 amBoth have a "Factory lead time" of two weeks - which might mean that Atmel either have their own "old stock" on hand or are still manufacturing the Non-A part.

author: JoeN
author_rank: Frequent Contributor
timestamp: June 04, 2015, 02:38:05 am
content: Buy from these guys instead, save yourself a boatload of money?http://www.newark.com/webapp/wcs/stores/servlet/Search?catalogId=15003&langId=-1&storeId=10194&gs=true&st=ATTINY44
help me identify this package please - Page 1
Forum section: electronics / general

author: angelothewolf
author_rank: Contributor
timestamp: June 08, 2015, 07:27:59 pm
content: this is a midi controller maudio oxygen 8. the smd transistor close to this IC was short, i couldnt find any info about it (CW8G1), so im trying to identify this chip to figure out what this transistor is, some help would be very apreciated, thank you!

author: Muxr
author_rank: Super Contributor
timestamp: June 08, 2015, 07:42:23 pm
content: The chip on the left is a bus driver, HTC574. The one on the right looks like an ST Micro micro controller but I am not sure which.

author: Kjelt
author_rank: Super Contributor
timestamp: June 08, 2015, 08:18:57 pm
content: Quote from: Muxr on June 08, 2015, 07:42:23 pmStrange indeed the ST Micros I know (STM8 and STM32Fx) have power and oscillator pins around pin 1 not Digital I/O.

author: angelothewolf
author_rank: Contributor
timestamp: June 08, 2015, 09:24:45 pm
content: with the shorted transistor on circuit, the keyboard doesnt turn on. with the transistor off the circuit the keyboard turn on normally but when i press a key it turns off.i dont know if it is a transistor (CW8G1) the most close SOT-23 i found was a 2.4v zener diode in common cathode configuration, but i tried with two zeners and doesnt work...

author: mikerj
author_rank: Super Contributor
timestamp: June 08, 2015, 10:21:25 pm
content: The micro could well be one of the olderST7 devices. I just checked the datasheet for a random 64 pin LQFP variant, and the pins connected to the HTC574 octal latch (61-64,1-4) are all the pins of an 8 bit port (PORTE). Pin 46 which connects to the left hand pin of the SOT23 device is also a digital I/O pin, so it's quite likely to be a transistor of some description.Quite a lot of older SMT designs I have worked on have used bipolar transistors that include resistors for base current limiting/pulldown within the device package, so this is a possibility if a simple bipolar or MOSFET doesn't seem a good fit for the circuit.

author: Bassman59
author_rank: Super Contributor
timestamp: June 08, 2015, 10:30:24 pm
content: Quote from: angelothewolf on June 08, 2015, 07:27:59 pmSome kind of reset supervisor?

author: angelothewolf
author_rank: Contributor
timestamp: June 09, 2015, 03:14:58 pm
content: i have no much experience in microcontrollers but you are getting almoust there. really apreciate your help, otherwise this thing is going to end up in the trash!
Reading flash (NVM) memory on Freescale S12G microcontroller - Page 1
Forum section: electronics / general

author: aiq25
author_rank: Regular Contributor
timestamp: June 03, 2015, 07:05:14 pm
content: Hi. I'm using a Freescale S12G family micro. I'm trying to get the ADC reference voltage to work. I'm looking to read the internal voltage reference of the micro (already have this working) and comparing it with the stored value to get the actual VRH (in my case VCC) of the ADC. This is to compensate any variations in the VRH (in my case VCC).I'm looking at the datasheet and it says the following:VRH = (StoredReference/ConverteredReference)*5VI have the ConvertedReference done but I can't read the stored reference. The datasheet says it's in NVM memory IFR location 0x0_4022/0x0_4023. Can anyone give me some pointers on how to read that memory location? I'm still a beginner at programming, that's why I'm a little confused. I'm using CodeWarrior IDE.Thank You.
picobootSTK500 v1 release - Page 1
Forum section: electronics / general

author: ralphd
author_rank: Frequent Contributor
timestamp: June 01, 2015, 07:51:24 pm
content: I've released v1 of picobootstk500:http://nerdralph.blogspot.ca/2015/06/picobootstk500-v1-release.htmlIf you didn't see my beta release notice, picobootSTK500 is an arduino compatible (as in avrdude -c arduino) bootloader written 100% in AVR assembler, in less than 256 bytes.The main changes are the addition of eeprom read support, and testing on the atmega168p. For the beta version I only had m328's to test with, but since picked up a cheap (as in the price of a coffee) pro mini 168 board. The Makefile for the beta release had a mistake in the m168 fuse settings, which is now fixed.
Wondering what this IC might be - Page 1
Forum section: electronics / general

author: asCii
author_rank: Newbie
timestamp: June 01, 2015, 12:23:15 pm
content: Hello everybody. I've been watching the show for a while now, but I had never been to the forums before. I decided to sign up, because I think somebody here might be able to help me with his or her expertise.So I'm checking out some insulin pumps to see what processor they use, and I was wondering if you could help me out with this one. I'm attaching a picture of the IC. I'm not even sure if this is an ASIC, a preprogrammed MCU, or what.What do you think?(I'm sorry if this is not the correct forum section. Please point me out to the correct one, if that is the case)Thanks in advance!

author: PA0PBZ
author_rank: Super Contributor
timestamp: June 01, 2015, 12:30:59 pm
content: http://en.wikipedia.org/wiki/H8_Family

author: andersm
author_rank: Super Contributor
timestamp: June 01, 2015, 12:33:42 pm
content: Based on the package markings, I'm guessing it's a Hitachi (now Renesas)H8/3067microcontroller.

author: asCii
author_rank: Newbie
timestamp: June 01, 2015, 12:41:53 pm
content: Cool, thank you both very much!
Idiot question, be warned. - Page 1
Forum section: electronics / general

author: Deathwish
author_rank: Unknown
timestamp: May 27, 2015, 12:59:19 pm
content: I know nothing about the Arduino. so I thought ok I best find out all about it, to that end i got the following.http://www.gearbest.com/development-boards/pp_22532.htmlhttp://www.gearbest.com/development-boards/pp_62975.htmlhttp://www.gearbest.com/development-boards/pp_29453.htmlThe above were so I had a collection of the boards.http://www.gearbest.com/development-boards/pp_22820.htmlThe LCD is the problem as I have NO idea if this will fit all of the above or just the last one. Does anyone know ?.Of course you do because your all cleverer than me

author: apelly
author_rank: Unknown
timestamp: May 27, 2015, 01:06:04 pm
content: Almost certainly all of them.The trick to getting good responses, and contributing to good search results for the site is to make good subjects.

author: ivan747
author_rank: Super Contributor
timestamp: May 27, 2015, 01:06:16 pm
content: Don't get the Duemilanove, that's only an old vertion of the Uno. The LCD should work for the Uno and the Duemilanove. The mega may or may not work with it.

author: SL4P
author_rank: Super Contributor
timestamp: May 27, 2015, 09:39:39 pm
content: the row of blanks is a good start, but many LCD shields use a different CS chip select pin than the default for the MEGA.Easy to work around, just keep it in mind.
xbee questions (baud rate, transparent mode error correction) - Page 1
Forum section: electronics / general

author: linux-works
author_rank: Super Contributor
timestamp: May 27, 2015, 12:33:55 am
content: I've been using xbees for a while but some of the details are still unknown to me.for example, if I'm using simple 'non-api' mode and just sending in serial ttl data to one xbee and getting that exact stream out of the other (what I would call 'transparent mode'), I notice that I don't get an error free transport. when the signal is good or if I use xbees with antennas soldered to them (factory), what I see is what I put into the other end. when I use the chip-antenna non-wire version or if the signal is not strong enough I get dropped chars and the stream is not truly trustable.is there a setting to ensure, even with retries done for you, that you get an error free end to end link in 'simple' non-api mode?if I add a bunch of other xbees all tuned to the same network id (ATID 3331, for example) does the thruput or error detection/correction get worse? I'm using the style where one transmits and the rest all receive. I don't know if this incurs overhead or if its 'free'. anyone have experience in this area?other question is about baud rate, still using simple non-api mode. do the end points have to be using the same baud rate or is that just a local issue and not relevant to the rf to rf link between the radio pairs? suppose we ignore buffering issues and how long it takes to empty a buffer at slow serial speed vs higher speed. suppose the packet is a few characters, very very small. would either end be free to set its local baud rate to what it wants or will there be problems if they are mismatched?(I have the series-1 xbees, not the pro or series-2).
arduino due port manipulation - Page 1
Forum section: electronics / general

author: electronics man
author_rank: Frequent Contributor
timestamp: June 15, 2015, 02:13:48 pm
content: I'm trying to measure the speed of an arduino due like in this videohowever the PORTB = B0010000; doesn't work on the due, I would like to know how i can manipulate an arduino dues ports.

author: shebu18
author_rank: Frequent Contributor
timestamp: June 15, 2015, 02:37:27 pm
content: Hy,The Due has an ARM processor and the mini in the video has a atmega328 they are totally different.The schematic for the duehttp://www.arduino.cc/en/uploads/Main/arduino-Due-schematic.pdfshows you that PB5 is connected to Ethernet, so you will not see any pin changes. The 5th pin is connected to PC25. PA, PB and PC are 32bit ports, not 8bit. For manipulating it you would need to write PORTC = B00000000000000000000000000010000.You could try PORTB &= 0xFFFFFFEFPORTB |= 0xFFFFFFFF

author: bobcat
author_rank: Regular Contributor
timestamp: June 15, 2015, 06:40:10 pm
content: To toggle PWM5 on Arduino Due after setting as output:PIOC->PIO_SODR=(1u<<25); // Set Pin HighPIOC->PIO_CODR=(1u<<25); // Set Pin LowYou may want to add a delay between the Set commands because it will be fast.

author: retrolefty
author_rank: Super Contributor
timestamp: June 15, 2015, 07:33:59 pm
content: Just as a side bar, there are more then 14 (0-13) digital pins available on your nano by utilizing the six analog input pins as digital pins. This can be done either by using pin names as follows:digitalWrite(A0, HIGH);ordigitalWrite(14, HIGH);If one just wants to generate a fixed square wave at the highest possible frequency one can utilize one of the timers to directly drive a output pin using internal hardware, and I seem to recall that the fastest speed possible will be 1/2 the clock rate, so 8 MHz for a 16 MHz clock.

author: electronics man
author_rank: Frequent Contributor
timestamp: June 15, 2015, 11:10:48 pm
content: Quote from: shebu18 on June 15, 2015, 02:37:27 pm1, due doesn't have Ethernet2, port manipulation doesn't work like that for the due it is a totally different syntax but i don't know what the syntax is
nRF24l01 control with only 2 MCU pins by duplexing MOSI/MISO - Page 1
Forum section: electronics / general

author: ralphd
author_rank: Frequent Contributor
timestamp: May 24, 2015, 01:40:12 am
content: I figured out a way to improve on my 3-wire nRF control circuit, getting it down to just 2 MCU pins. I tested it on an ATtiny13a, which leaves 3 of the 5 GPIO pins available.The code is for 8-bit AVRs, and should be easy to adapt to PIC or ARM.http://nerdralph.blogspot.ca/2015/05/nrf24l01-control-with-2-mcu-pins-using.html
Would you pay for VisualMicro? - Page 1
Forum section: electronics / general

author: FlevasGR
author_rank: Regular Contributor
timestamp: May 19, 2015, 06:47:36 pm
content: Hello guys, today i bought a licence for VisualMicro with a friend (3 computers total of 49$). I was using it as a trial for the past month and i really liked it. I'm using it with AtmelStudio 6.2 since it will wrap itself on every Visual Studio installation in your system.For those who dont know VisualMicro is the most advanced plugin for visuam studio and it also includes the most bad*ss debuger for arduino. Specificaly when in debug mode it will upload code in the arduino which then will track every variable in the IDE during runtime.I couldn't find any other program to use so i stuck with it for the project i'm working and it turned to be a pretty good solution for arduino coding. The default IDe isCRAPso after the trial expired as a good guy i bought it.Do you think that is worth it? Me and my friend paid 25$ each and we got 3 computers.VisualMicro:http://www.visualmicro.com

author: Wilksey
author_rank: Super Contributor
timestamp: May 19, 2015, 09:39:18 pm
content: If you like it and get good use out of it, then yes it is worth it.Things are only worth something if you think it is, some people would say no because they have no use for such a tool.For 3 computers, it is one of the cheaper tools I have come across for this kind of application if that helps?

author: westfw
author_rank: Super Contributor
timestamp: May 22, 2015, 12:07:25 am
content: $25 (or even $50) for software that you like sounds reasonable to me.Especially now that VM works with AS and VS "community" - their original "get VS for free by XXX" scheme seemed a little shaky...(don't forget that what you're paying is just for the add-on. Built on the shoulders of free gcc, AS, and VS...)One of the things that the Arduino world has explored is the pricing models for semi-technical consumers. "Would you pay $30 for a m328 development board with built-in USB connectivity instead of having to put it together out of parts?" (YES!) "How about $80 for a board with WLAN, instead of having to repurpose a $30 router?" (Um. Maybe?) Etc.
Programming wizards needed! Arduino Newbie. - Page 1
Forum section: electronics / general

author: rickey1990
author_rank: Regular Contributor
timestamp: May 19, 2015, 08:34:40 pm
content: Okay so im building a drone, i was thinking of using a arduino as a sort of motor adapter, the arduino would be attached to the motor outputs from a coaxial helicopter with built in gyro,rc and all the bits i didn't fancy building. These motor output signals would then be red by the arduino and used to drive 2 brush-less motors.But id like to know what people think and could it work (Picture attached, Note Pot was in the picture before i edited it so please ignore), programming wise, I did do robotics as part of my electrical engineering course, But the last thing i programmed was a robotic arm at college with machine code and some basic programming involving with binary and hexadecimal. also logic gates. so im abit of fossil when it comes to the newer stuff. only 25 :0. so any help would be appreciated.Kind regards,Rickey

author: mikerj
author_rank: Super Contributor
timestamp: May 20, 2015, 12:56:05 pm
content: It looks quite feasible. The motor drivers from the toy heli are low side MOSFETs, so you'll need pull up resistors to the Arudino's 5v supply.Whether it's a good idea is debatable. By doing this you are stuck with the original gyro control loop parameters, which may not be optimal for a different model. With the relatively low cost of RC components these days wouldn't it be worth using a proper modular RC receiver and gyro?
Help identify this NXP MCU chip - Page 1
Forum section: electronics / general

author: sptm14a
author_rank: Newbie
timestamp: May 18, 2015, 08:13:12 pm
content: Hello,Anybody familiar with crazy NXP package markings, please help ID this chip (HVQFN32 package)Relevant markings on the chip:NXP3303SD4224BIt is used in a USB device and it is possibly one of LPC1100 or LPC1300 series MCUsThanks!

author: ddcc
author_rank: Regular Contributor
timestamp: May 20, 2015, 02:59:12 am
content: For reference, this is used in the Yubikey Neo:http://hexview.com/~scl/neo/

author: amyk
author_rank: Super Contributor
timestamp: May 20, 2015, 04:31:03 am
content: Given its application it is probably a custom version of one of their NFC ICs.

author: andersm
author_rank: Super Contributor
timestamp: May 20, 2015, 04:52:18 am
content: The date code of 09 makes it too early for an LPC1100.
HM10 Bluetooth (CC2541) put in to sleep while connected to iOS application - Page 1
Forum section: electronics / general

author: tozoysa
author_rank: Newbie
timestamp: May 14, 2015, 04:12:32 pm
content: I'm trying to trigger an action on iOS application using HM10 Bluetooth module. And i have successfully accomplished the functionality, But now my concern is the power consumption, I have already moved to the ATTiny85 controller chip and it wakesup using hardware interrupt. So ATTiny85 along consumes 0.2µA in sleep mode(Which is the 99% of time).My question is how i put HM10 module in to sleep mode while its connected to my iOS application?This whole module supposed to drive by using coin cell battery.Any helpful tips are welcome..Thanks in advance!

author: Marco
author_rank: Super Contributor
timestamp: May 15, 2015, 03:04:04 am
content: It doesn't have a true low power mode ... at best it can go down to 150 or so uA, which isn't coin cell friendly.You could power gate it with an external FET ... or switch to a nRF51822 based module so you aren't stuck with the choice of someone else's lackluster firmware or buying IAR for a couple thousand.

author: tozoysa
author_rank: Newbie
timestamp: May 19, 2015, 01:56:02 pm
content: @Marco, Appreciate your input.Do you think i can achieve better result with external MOSFET and CC2541? What do you recommend between CC2541/CC2540 and nRF51822?Regards,Prasad.

author: Marco
author_rank: Super Contributor
timestamp: May 19, 2015, 03:25:22 pm
content: I have no experience with either, so I'm not going to recommend anything.The MOSFET would cut the current to next to nothing, but it would need to completely restart when you turned the power back on ... don't know how long that takes or whether it would be a problem for you.Hereis an example from TI for one of their other CC2xxx wireless chips which uses power gating. Dunno why they used that fancy switch to do the gating, probably because they don't make discrete MOSFETs(You should probably use a P-MOSFET by the way, don't think it would be a good idea to not give the HM10 a low inductance ground connection.)
Li-Ion Battery Live Monitor System - BLMS - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: May 14, 2015, 12:14:41 pm
content: This week Project:A "good-to-have" add-in for a battery powered project is a monitoring function that will be able to check over the entire battery lifetime at least few parameters like, temperature, voltage, current, power consumption and stored energy between charges.A simple, basic, capacity test / loading / discharging time values can give you valuable informations about the parameters and health of the battery. And, of course, you can see how are looking the numbers against the datasheet claims.Youtube Video, BLMS testing :For more details:ESP8266 Battery Monitoring SystemLooking forward for your comments aboutThank you.

author: TJ232
author_rank: Frequent Contributor
timestamp: May 18, 2015, 11:06:04 am
content: Part 2 of the BLMS Project:Designing Web Server Interface and Live Data upload on Thingspeak.comFor more details :http://www.esp8266-projects.com/2015/05/p2-battery-monitor-system-web-server.html<offtopic>For a better reading and websurfing experience, in the website redesign process, all of the pop-up Ads were removedIf you want to continue supporting esp8266-projects and my work, you can do it by:- ordering Projects Boards/PCB's- buy Amazon products (any products you need!) using one of the existing website Amazon links- using the Donate button. </offtopic>Thank you & looking forward for your feedback!

author: TJ232
author_rank: Frequent Contributor
timestamp: May 18, 2015, 12:39:20 pm
content: And a Live BLMS data upload, as we speaking:https://thingspeak.com/channels/29737Enjoy
HID-Serial adapter for using the LPC810 - Page 1
Forum section: electronics / general

author: bequest333
author_rank: Contributor
timestamp: May 11, 2015, 03:17:28 am
content: Hi,I am using Mr.Diego Mariano López customers' USB1.1 stack.It was transplanted into LPC810.http://www.ucontrol.com.ar/forosmf/programacion-en-asm/inalambrico-usb-12f675/Attached source is HID-serial adapter which has confirmed the operation.(1)Parts listUSB connectorLPC810Resistor 10kResistor 1k5Condenser 104Diode x3(2)LPC810 Pin assignment1.Reset (PIO0_5)2.PIO0_43.RXD (PIO0_3)4.TXD (PIO0_2)5.D- (PIO0_1)6.VDD7.VSS8.D+ (PIO0_0)(3)Technical informationSerial data transfer amount 1byte (Max 8bytes,You need to rewrite HID Report Descriptor)Baud rate 9600Program Size 3.2k bytes (80%)

author: zapta
author_rank: Super Contributor
timestamp: May 11, 2015, 04:15:42 am
content: How does it looks on the host side (e.g. windows)? As a standard serial port?

author: bequest333
author_rank: Contributor
timestamp: May 11, 2015, 04:52:34 am
content: Hi,zaptaThis is not a CDC.CDC can be implemented in USB1.1, but it is operating outside the standard.From the window it looks like the following.USB Human Interface DeviceDriver installation because it is HID is not required.<How to access the HID device.>1.You want to create an application on their own.2.Use the YAT. (Yet Another Terminal)http://sourceforge.net/projects/y-a-terminal/3.It uses a loop back host of attachments.Best regards,Bequest333

author: bequest333
author_rank: Contributor
timestamp: May 21, 2015, 04:21:18 pm
content: Hi,AllI've updated the LPC810 firmware.Added feature1.To change the baud rate from the host.2.Manipulating the communication conditions from the host.(UART ON/OFF, data length, parity, stop bits)3.2bits of the output port operation.<Pin assignment>1.DTR (PIO0_5)2.RTS (PIO0_4)3.RXD (PIO0_3)4.TXD (PIO0_2)5.D- (PIO0_1)6.VDD7.VSS8.D+ (PIO0_0)Thank you very much for Download.Best regards,Bequest333
nRF905 library for AVR - Page 1
Forum section: electronics / general

author: amperium
author_rank: Contributor
timestamp: May 14, 2015, 02:27:49 pm
content: Hi guys,for a new project I need to communicate wireless between 2 AVRs. For that I chose amodule with a nRF905 on it.Now I'd like to ask if anyone has a library for this controller. It would save me quite a lot of time.Thanks!-amperium

author: linux-works
author_rank: Super Contributor
timestamp: May 14, 2015, 03:51:34 pm
content: I have a pair of them but have not even opened the wrappers (boxes) yet.I do use xbees quite a lot. they are a lot more expensive but they are also very easy and reliable to use. no library even needed, just pure ttl/serial in and out.anyway, once I finally do get around to the nrf module I'll see how it compares. you may also want to get a pair of xbee modules and try both of those rf technologies out.and of course, there is also the ESP wifi module that everyone is hacking on and talking about. also ttl serial to talk from controller to the wifi module and it has the benefit of being able to connect to webservers or anything else IP.

author: amperium
author_rank: Contributor
timestamp: May 15, 2015, 10:06:30 pm
content: Thank you for your answer!The reason why I'm using nRF905 is that they are really cheap.I'll have a look, thanks!

author: linux-works
author_rank: Super Contributor
timestamp: May 15, 2015, 10:18:39 pm
content: I bought a pair, too, since they are cheap and have library support. I just have not even opened their wrappers yet, let alone looked at any codetoo many other things going on, but I do plan to explore them.the reason I mentioned the xbee is that its a zero effort module. if you can talk wired over ttl serial, you can then get an rf link with a pair of xbees for zero effort. that's what I really like about them and that's why they can ask so much money for what is really not all that much technology inside. its just convenient as hell to have an easy serial ttl wireless transport.

author: Muxr
author_rank: Super Contributor
timestamp: May 16, 2015, 05:01:24 pm
content: Have you tried this?https://github.com/zkemble/nRF905There is also a quick tutorial:http://blog.zakkemble.co.uk/nrf905-avrarduino-librarydriver/