Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Recent content by Adbadb

  1. A

    [SOLVED] 9 bit Usart not working (MPCM)

    I found what was the problem, the USART was initialised like this: /* Enable receiver and transmitter */ UCSRB = (1<<RXEN)|(1<<TXEN); /* Set frame format: 9data, 1stop bit */ UCSRC = (7<<UCSZ0); But the UCSZ2 bit is in the USCRB register and not in UCSRC, so the right code will be: UCSRB =...
  2. A

    [SOLVED] 9 bit Usart not working (MPCM)

    Yes but even before all that i have return resh; ///test This is to test if the bit RXB8 in UCSRB is set to 1. And it isn't, that is the problem.
  3. A

    [SOLVED] 9 bit Usart not working (MPCM)

    So there is Master and Slave Attiny2313. The Master sends the 9 bits of data(the 9th bit TXB8 is set to 1), but the slave doesn't detect the 9th bit(RXB8 is still 0). I think if the TXB8 bit is set in the Master the RXB8 bit on the Slave should be set automatically, or not? Code: void...
  4. A

    [AVR] PRINTF not working in AVR Studio 7

    Yes but i think putc() doesent work in simulation.
  5. A

    [AVR] PRINTF not working in AVR Studio 7

    Well its a simple way to see if something is working or not. That's why i need it.
  6. A

    [AVR] PRINTF not working in AVR Studio 7

    Yes but in the new installation i made new project and just copied the code, i think by default the output window should work, still the same. If the code is ok, then the problem must be in Atmel Studio, this is a new version, maybe there is a bug, but highly unlikely.
  7. A

    [AVR] PRINTF not working in AVR Studio 7

    No there is no serial cable, in the Atmel Studio 7 there is output window where you can test the code, it should show up there, except if i have some mistake in the code or some i cant think of another reason.
  8. A

    [AVR] PRINTF not working in AVR Studio 7

    Yes i know, i even reinstalled Atmel Studio and it is still the same, the code above is very simple and i think it should work, it is very strange.
  9. A

    [AVR] PRINTF not working in AVR Studio 7

    No, there is output window where it should write what is in the printf statement, but it doesn't output anything.
  10. A

    [AVR] PRINTF not working in AVR Studio 7

    Yes, i did but still nothing on output. #include <avr/io.h> #include <stdio.h> int main(void) { while(1) { printf("a"); } } ***merged post *** It was, but it suddently stoped, and now it doesent work in any code, this is the simplest code possble to check if its working and still...
  11. A

    [AVR] PRINTF not working in AVR Studio 7

    Ok, so suddenly printf is not working in AVR studio, i dont know what happened, this is the code, but it doesn't output anything to the debug window: #include <avr/io.h> #include <stdlib.h> int main(void) { while(1) { printf("a"); } }
  12. A

    [SOLVED] Problem connecting ULN2003 to AVR

    Yes i checked and the problem was that the pin was configured as input pin, i changed it to output and now everything is ok, it was my mistake. Thank you for your help.
  13. A

    [SOLVED] Problem connecting ULN2003 to AVR

    The supply is stable 5v, the problem is that the output pin when it is connected to the input of the ULN2003 drops to 1V. But when the +5V are connected directly to the ULN2003 it works ok.
  14. A

    [SOLVED] Problem connecting ULN2003 to AVR

    The current is low it is 10ma. And the 3.8V are on the MCU with ULN2003 disconected, and if i connect the ULN2003, on his input pin i measure lower than 1 V. It is strange.
  15. A

    [SOLVED] Problem connecting ULN2003 to AVR

    The output pin on the ULN2003 should be 0v when on the input it has +5v. Now, when i connect the +5v from the MCU directly to the input of the ULN2003 it is ok, the output is 0v. But when the output pin from the MCU is connected to the ULN2003 it is not working, the output of ULN2003 is not 0v...

Part and Inventory Search

Back
Top