Jump to content

Typedef Structs Greater Than 256 Bytes?

Recommended Posts

Hello guys..


Is it possible to allocate larger buffers than 256 bytes and include into a typedef struct??


Currently the entire size of my typedef struct is <256 bytes and this works, anything more and no joy.


I guess is it possible to allocate large buffers is the underlining issue?


Thanks, Alan

Link to post
Share on other sites

It's all to do with how the PICs are made. The RAM is laid out on 256 byte pages therefore the largest continuous block is 256 bytes before you have to start changing bank select addresses. It could probably be done but the code overhead in managing data and variable crossing page boundaries would make it not worth it.





Link to post
Share on other sites

Funny thing I'm dealing with the exact same problem right now. I'm already deep into the project so it's hard to think about changing platforms. I wonder how efficient it is on a pic to use buffers > 256 bytes at all regardless of whether typedef struct or not? If anyone has any good ideas, or links to articles on managing large data arrays and structs on 8-bit pics, please post them.

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...