Search found 77 matches

by Niro
Tue Dec 18, 2018 6:56 pm
Forum: Flowcode V6
Topic: Change Baudrate in runtime on old project - ATMega328
Replies: 2
Views: 3515

Re: Change Baudrate in runtime on old project - ATMega328

Hi Ben,

many thanks for your quick reply!

I just did some more testing and now got it working, changing the UART baudrate register UBRR0 directly .

Code: Select all

  
//BaudRate 4800 -> UBRR: 0x0067
// BaudRate 38400 -> UBRR: 0x000C

//Example for 4800:
UBRR0H = 0x00;
UBRR0L = 0x67;
Regards ;-)
Niro
by Niro
Tue Dec 18, 2018 5:03 pm
Forum: Flowcode V6
Topic: Change Baudrate in runtime on old project - ATMega328
Replies: 2
Views: 3515

Change Baudrate in runtime on old project - ATMega328

Hi guys, I urgently need to fix an old project with FCV6 to change the UART baudrate in runtime from 38400 to 4800 and back, using an ATMega328. I found a post about this problem, but this solution doesn't seem to work. Calling the FC macro within C-code with parameter 2 stops working with 38400 Bau...
by Niro
Sat Jun 23, 2018 6:00 pm
Forum: Flowcode V6
Topic: Watchdog Reset
Replies: 22
Views: 12018

Re: Watchdog Reset

Hi medelec,

cool! ...You are right!
Inside c-code within main it works quite fine!
But I thought the supplementary code also to be "c"??
BTW. ...target is ATmega328.

Many Thanks!
Niro
by Niro
Fri Jun 22, 2018 5:41 pm
Forum: Flowcode V6
Topic: Watchdog Reset
Replies: 22
Views: 12018

Watchdog Reset

Hi guys, for an old software I need to fix, I have a problem using // Disable Watchdog from Software-Reset MCUSR = 0; wdt_disable(); // for supplementary code after reset, to disable the watchdog at system start. The code works fine with AtmelStudio, but Flowcode shows some weired error messages, wh...
by Niro
Sun Dec 24, 2017 10:50 pm
Forum: Flowcode V5
Topic: Default Programmer Options for AVRDUDE ?
Replies: 1
Views: 2064

Re: Default Programmer Options for AVRDUDE ?

To answer my question:
...click default in the pulldown menu ...I should go to bed ;-)
by Niro
Sun Dec 24, 2017 10:42 pm
Forum: Flowcode V6
Topic: Programmer problem with FC and Atmel Studio 7
Replies: 1
Views: 2663

Re: Programmer problem with FC and Atmel Studio 7

To answer my question: remove AVRstudio 4 install Atmel Studio 7 install libusb-win32 (https://sourceforge.net/projects...) with the included nice inf-wizard to make AVRISP be recognized in Atmel Studio 7 correctly set Programmer options in Flowcode 6 from stk500 to AVRDUDE (default) ...finished Reg...
by Niro
Sun Dec 24, 2017 10:37 pm
Forum: Flowcode V5
Topic: Default Programmer Options for AVRDUDE ?
Replies: 1
Views: 2064

Default Programmer Options for AVRDUDE ?

Hi guys, I have to work on an old project an can not get the AVRISP MKii to work. I tried someting like AVRDUDE %a %t "%D\%f.hex" "%f.hex" %cfg %c0 %c1 %c2 %c3,1,-cs 2 -chip %p -config but only errors... Does anyone have the default programmer options for AVRDUDE, as I think they worked fine in form...
by Niro
Fri Dec 22, 2017 10:12 pm
Forum: Flowcode V6
Topic: Programmer problem with FC and Atmel Studio 7
Replies: 1
Views: 2663

Programmer problem with FC and Atmel Studio 7

Hi guys, for a long time I've been working with both AVRstudio 4 and FC 6 on one computer, setting the compuler options of FC to the STK500.exe of the AVRstudio. Now I decided to give the new Atmel Studio 7 (AS7) a try and no programming with my AVRisp MKii is working anymore ! :? In the first step ...
by Niro
Mon Jul 24, 2017 7:27 pm
Forum: Flowcode V6
Topic: Problem with UART0 RX interrupt
Replies: 4
Views: 4757

Re: Problem with UART0 RX interrupt

...many thanks guys!

I think, I'll be using the flag, because it can be implemented quite easily into my code.

Thanks,
Niro
by Niro
Fri Jul 21, 2017 1:58 pm
Forum: Flowcode V6
Topic: Problem with UART0 RX interrupt
Replies: 4
Views: 4757

Re: Problem with UART0 RX interrupt

...no ideas at all?

Thanks!
Niro
by Niro
Thu Jul 20, 2017 5:40 pm
Forum: Flowcode V6
Topic: Problem with UART0 RX interrupt
Replies: 4
Views: 4757

Problem with UART0 RX interrupt

Hi all, I'm using UART0 RX interrupt on the ATMEGA 328 to call a created service routine named ISR_UART for handling incomming data, and this worked quite fine.... for most cases till now :-( For example, when I receive a command (byte) form the UART (PC-Terminal), ISR_UART executes the according ro...
by Niro
Tue Feb 07, 2017 6:54 pm
Forum: Flowcode V6
Topic: Problems with custom interrupt
Replies: 3
Views: 4869

Re: Problems with custom interrupt

...found the mistake.
The code I've posted is working fine!

Niro
by Niro
Tue Feb 07, 2017 6:41 pm
Forum: Flowcode V6
Topic: Problems with custom interrupt
Replies: 3
Views: 4869

Re: Problems with custom interrupt

Hi,
yes this ist true, that is what I need. But the code I've posted doesn't work.
I only said, that the interrupt macros provided with FC doesn't support this behaviour.
by Niro
Mon Feb 06, 2017 9:21 pm
Forum: Flowcode V6
Topic: Problems with custom interrupt
Replies: 3
Views: 4869

Problems with custom interrupt

Hi guys,

new problem... ;-)
I am trying to create an interrupt on PCINT0 (ATmega 328) which calls a macro on every phase change (the FC interrupt only reacts on rising OR falling edge)
Do you have any idea what I'm doing wrong?

Thanks,
Niro
by Niro
Mon Feb 06, 2017 9:13 pm
Forum: Flowcode V6
Topic: !! SPI-protocol compiling ERROR with FC 6
Replies: 6
Views: 6330

Re: !! SPI-protocol compiling ERROR with FC 6

Hi,

yes, I tried, but it didn't work...
I then wrote the SPI initialization with standard c-code, as advised in the datasheet and did not use SPI macro from flowcode.
Now it works all fine.

Niro
by Niro
Mon Jan 30, 2017 7:29 pm
Forum: Flowcode V6
Topic: !! SPI-protocol compiling ERROR with FC 6
Replies: 6
Views: 6330

Re: !! SPI-protocol compiling ERROR with FC 6

Hi,

this properties window of the SPI component I already know and I have exactly the same configuration here.
And it is also the same configuration as in FC5, which works quite nice.
Any ideas?

Many thanks
Niro
by Niro
Mon Jan 30, 2017 2:49 pm
Forum: Flowcode V6
Topic: !! SPI-protocol compiling ERROR with FC 6
Replies: 6
Views: 6330

Re: !! SPI-protocol compiling ERROR with FC 6

Yes, that is right, but I found no option to change this in FC.
But what is more, what the SIN (MOSI) signal produces on the 'read' command seems to be wrong anyway, no matter which mode or the phase you choose.

If I'm wrong, please correct me.

Best regards,
Niro
by Niro
Sat Jan 28, 2017 10:01 pm
Forum: Flowcode V6
Topic: !! SPI-protocol compiling ERROR with FC 6
Replies: 6
Views: 6330

!! SPI-protocol compiling ERROR with FC 6

Hi Guys, I really had some hard days trying to figure out, why this damn external SPI-Flash didn't answer, although I had no problems with it in former times. It's hard to belive, but there were quite different SPI signals on my logic analyzer compiling the same SPI 'read' procedure with FC5 and wit...
by Niro
Mon Jan 02, 2017 8:22 pm
Forum: Flowcode V6
Topic: How to use Digole SPI Text-LCD Display Adapter
Replies: 4
Views: 5298

Re: How to use Digole SPI Text-LCD Display Adapter

Hi Benj, it is working quite well now, but I really had problems in the beginning with SS_ pin (Slave select, low active). As you can see in the picture, SS_ is connected to pin B2 (port B, bit 2) of the ATmega328. This is the only way it is working. For my complete circuit some more SPI-components ...
by Niro
Sun Dec 25, 2016 7:49 pm
Forum: Flowcode V6
Topic: How to use Digole SPI Text-LCD Display Adapter
Replies: 4
Views: 5298

Re: How to use Digole SPI Text-LCD Display Adapter

Hi Benj,

many thanks, very interesting.
I'll keep you updated...

Niro
by Niro
Thu Dec 22, 2016 9:01 pm
Forum: Flowcode V6
Topic: How to use Digole SPI Text-LCD Display Adapter
Replies: 4
Views: 5298

How to use Digole SPI Text-LCD Display Adapter

Hi guys, I'm working on a new project over the holidays and hoping someone could give me some help to start it... ;-) I bought a Digole SPI Text-LCD Display Adapter (V2), as it seems to be very versatile and quite cheap. http://www.digole.com/index.php?productID=551 It should be used for a 4x20 LCD ...
by Niro
Wed Jul 29, 2015 12:03 am
Forum: Flowcode V6
Topic: Using internal VRef on ATmega 328
Replies: 4
Views: 4707

Re: Using internal VRef on ATmega 328

OK.... done!
I wrote my own C-code for accessing the ADC. Much easier than modifing FlowCode.
But I hope that gets fixed in an update.
Using FlowCode for professional applications needs really some better support for special functions, and especially for AVR at all....

Regards,
Niro
by Niro
Mon Jul 27, 2015 3:33 pm
Forum: Flowcode V6
Topic: Using internal VRef on ATmega 328
Replies: 4
Views: 4707

Re: Using internal VRef on ATmega 328

Thanks kersing, for this workaround. The idea sound good, but unfortunately it doesn't work either. Maybe I applied it the wrong way.... I added a global that shows up in the C-code under 'variable declarations' as: #define FCVsz_ADC_VREF_INTERN 1 Now I changed the name in the AVR_CAL_ADC this way, ...
by Niro
Sat Jul 25, 2015 8:31 pm
Forum: Flowcode V6
Topic: Using internal VRef on ATmega 328
Replies: 4
Views: 4707

Re: Using internal VRef on ATmega 328

I tried it the way of the thread mentioned above, but unfortunately it does not work. ADC is still using Vref=VDD For the use of the internal Vref (1,1V) this should be added for ATmega328: ADMUX |= (1 << REFS0); (Bit 6) ADMUX |= (1 << REFS1); (Bit 7) So I looked through the AVR_CAL_ADC and found ou...
by Niro
Wed Jul 22, 2015 3:38 pm
Forum: Flowcode V6
Topic: Using internal VRef on ATmega 328
Replies: 4
Views: 4707

Using internal VRef on ATmega 328

Hi All, I know, there has been a post regarding attiny for FC V5 here, but it seems to me this is different in V6. http://wwww.matrixmultimedia.com/mmforums/viewtopic.php?f=49&t=13048&p=52772&hilit=internal+vREF&sid=e423d13bf210e7d3f5a3845a365df5ce#p52772 Can anybody help using the internal ref (1.1...