View previous topic :: View next topic |
Author |
Message |
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Mon Jan 30, 2023 5:16 pm Post subject: excel spreadsheet logical pin'name for avr128db28 |
|
|
hello,
I did an help file to find the good pins with the new avr128DB28 maybe it can help you.
because the microship datasheet
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Mon Jan 30, 2023 5:44 pm Post subject: |
|
|
Hello,
What can I say. Excel rules but Bascom is 1st of course
It may be very useful- just to not switching cards between .pdf/project info.
Some time ago I had an idea to create excel file which is able to create config for I/O - input or output and default state. Just select and done and on the next sheet - final code. Nevertheless, for my purpose it was not needed and this kind of tables are enough for me
Regards,
Przemek |
|
Back to top |
|
|
matjazs
Joined: 08 Nov 2016 Posts: 86
|
Posted: Mon Jan 30, 2023 9:43 pm Post subject: |
|
|
This means that PF1 and PF2 are the pins for the 32KHz (RTC) crystal.
If we use RTC in this case, we cannot use serial port (Tx Rx).
Is this true? |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Tue Jan 31, 2023 7:16 am Post subject: |
|
|
Correct. |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
|
Back to top |
|
|
matjazs
Joined: 08 Nov 2016 Posts: 86
|
Posted: Wed Feb 01, 2023 6:48 pm Post subject: |
|
|
Thanks for the reply.
I made a hardware where the GSM modem is on this port, but I also need the RTC.
I will have to make another PCB |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Wed Feb 01, 2023 6:52 pm Post subject: |
|
|
Hi,
You can try to use internal RTC but accuracy may not be good enough.
[Solved] RTC problem AVR128db28
Regards,
Przemek
Edit1: I'm thinking if using specific crystal frequency + timer can create much more accurate source for time measurement.
Based on my measurements and uP, internal RTC has +/- 300 ppm (32k768). |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Wed Feb 01, 2023 8:52 pm Post subject: |
|
|
matjazs wrote: | Thanks for the reply.
I made a hardware where the GSM modem is on this port, but I also need the RTC.
I will have to make another PCB |
the plain AVR are simple. the only double function are as a normal IO port.
the Xtiny platform uses a multiplexer which is super since you can also switch function dynamical. But.. (there is always a but) the connected hardware must be suited for the various functions.
In this case you can not have both an external oscillator and a USART.
Because the old AVR where limited in function, it means you need to have a good look in the circuit design phase.
The first topic from the PDF should be the I/O multiplexing and Considerations topics from the datasheet.
Personally i do not like all the gray. So i first un-protect the PDF. Then i convert it to a word document so i can copy the table and remove the gray background.
The colored excel is very nice
Then i make the casing columns different colors. It is important when you work on a certain case like 20 pin or 48 pin to look in the proper column for the pin number.
The rest is just like puzzling : how to get all the hardware you want without using the same pin. Sometimes using an alternative in pin location.
For example the DA64 has the xtal32 on PF0 and PF1 but usart2 txd and rxd are on these pins too.
since xtal32 has no alternative, usart2 alternative location PF4 and PF5 can be used. In bascom you use the txpin option from config com to select the alternative location.
but all processors also from different platforms have the same problem : usart is shared with SPI, etc. so you can not use all usarts and all SPI available. And the less pins the processor has the bigger the problem can become.
So that is why you end up with the 64 pins version in most cases. only simple hardware can do with 8, 10 or 20 pins.
you can always add a simple i2c RTC module. but the internal RTC works fine for me. _________________ Mark |
|
Back to top |
|
|
|